hi guys i got new ideai today, why not making a special plugin for these 2 plugins so when players reach 50 escapes example ther server give him more speed than others for just one map. and for 50 infects the server give zombies more knockback or gravity for one map too.
viewtopic.php?f=15&t=3561
viewtopic.php?f=15&t=3560
Hud messages:
Human: !tYou are !gsuper runner !tnow as you escaped !g50 !ttimes!y! (+ 50 speed)
Zombie: !tYou are !gheavy beast !tnow as you infected !g50 !ttimes!y! (+ 50 knock back)
Super Runner & Heavy Beast
So what ?, i see it's a good idea !
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
Do your action:
- #include <zombie_escape>
- native ze_get_user_infects(id)
- native ze_get_user_escapes(id)
- public plugin_init()
- {
- register_plugin("[ZE] Best runner", "1.0", "Jack")
- }
- public ze_user_infected(iVictim, id)
- {
- if (is_user_alive(id) && ze_is_user_zombie(id))
- {
- if (ze_get_user_infects(id) > 50)
- {
- // Do your action
- ze_colored_print(id, "!tYou are !gheavy beast !tnow as you infected !g50 !ttimes!y! (+ 50 knock back)")
- }
- }
- }
- public ze_user_humanized(id)
- {
- if (is_user_alive(id))
- {
- if (ze_get_user_escapes(id) > 50)
- {
- // Do your action
- ze_colored_print(id, "!tYou are !gsuper runner !tnow as you escaped !g50 !ttimes!y! (+ 50 speed)")
- }
- }
- }
and how can i change percentage of speed and knockback ?
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
For knockback, In ze_core, we hooked traceattack, do the same thing but set your preferred value.
For speed, use the native
- ze_set_user_human
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Sign in
Who is online
Users browsing this forum: Bing [Bot] and 1 guest