Super Runner & Heavy Beast

Unpaid Requests, Public Plugins
Post Reply
User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

Super Runner & Heavy Beast

#1

Post by Spir0x » 5 years 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)

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#2

Post by Spir0x » 4 years ago

So what ?, i see it's a good idea !

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#3

Post by Night Fury » 4 years 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.
Discord: Fury#7469
Image

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#4

Post by Spir0x » 4 years ago

and how can i change percentage of speed and knockback ?

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#5

Post by Night Fury » 4 years ago

Spir0x wrote: 4 years 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.
Discord: Fury#7469
Image

Post Reply

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

Register

Sign in

Who is online

Users browsing this forum: No registered users and 8 guests