Page 1 of 1

Super Runner & Heavy Beast

Posted: 12 Mar 2019, 12:53
by Spir0x
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)

Re: Super Runner & Heavy Beast

Posted: 15 May 2019, 15:49
by Spir0x
So what ?, i see it's a good idea !

Re: Super Runner & Heavy Beast

Posted: 16 Jun 2019, 14:24
by Jack GamePlay
Do your action:
  1. #include <zombie_escape>
  2.  
  3. native ze_get_user_infects(id)
  4. native ze_get_user_escapes(id)
  5.  
  6. public plugin_init()
  7. {
  8.     register_plugin("[ZE] Best runner", "1.0", "Jack")
  9. }
  10.  
  11. public ze_user_infected(iVictim, id)
  12. {
  13.     if (is_user_alive(id) && ze_is_user_zombie(id))
  14.     {
  15.         if (ze_get_user_infects(id) > 50)
  16.         {
  17.             // Do your action
  18.             ze_colored_print(id, "!tYou are !gheavy beast !tnow as you infected !g50 !ttimes!y! (+ 50 knock back)")
  19.         }
  20.     }
  21. }
  22.  
  23. public ze_user_humanized(id)
  24. {
  25.     if (is_user_alive(id))
  26.     {
  27.         if (ze_get_user_escapes(id) > 50)
  28.         {
  29.             // Do your action
  30.             ze_colored_print(id, "!tYou are !gsuper runner !tnow as you escaped !g50 !ttimes!y! (+ 50 speed)")
  31.         }
  32.     }
  33. }

Re: Super Runner & Heavy Beast

Posted: 16 Jun 2019, 14:57
by Spir0x
and how can i change percentage of speed and knockback ?

Re: Super Runner & Heavy Beast

Posted: 17 Jun 2019, 17:06
by Jack GamePlay
Spir0x wrote:
2 Months Ago
and how can i change percentage of speed and knockback ?
For knockback, In ze_core, we hooked traceattack, do the same thing but set your preferred value.
For speed, use the native
  1. ze_set_user_human
and update the speed on humanization.