Super Runner & Heavy Beast

Unpaid Requests, Public Plugins
Post Reply
User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 640
Joined: 3 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 21
Contact:

Super Runner & Heavy Beast

#1

Post by Spir0x » 1 Year Ago

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)
I trynna make money, not friends.

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 640
Joined: 3 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 21
Contact:

#2

Post by Spir0x » 1 Year Ago

So what ?, i see it's a good idea !
I trynna make money, not friends.

User avatar
Night Fury
Mod Developer
Mod Developer
Egypt
Posts: 664
Joined: 3 Years Ago
Location: Egypt
Has thanked: 38 times
Been thanked: 53 times
Age: 21
Contact:

#3

Post by Night Fury » 1 Year Ago

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. }
Want your own mod edition? PM me.
Accepting private projects.

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 640
Joined: 3 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 21
Contact:

#4

Post by Spir0x » 1 Year Ago

and how can i change percentage of speed and knockback ?
I trynna make money, not friends.

User avatar
Night Fury
Mod Developer
Mod Developer
Egypt
Posts: 664
Joined: 3 Years Ago
Location: Egypt
Has thanked: 38 times
Been thanked: 53 times
Age: 21
Contact:

#5

Post by Night Fury » 1 Year Ago

Spir0x wrote:
1 Year 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.
Want your own mod edition? PM me.
Accepting private projects.

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests