Approved Bonus with Level

Useless Stuffs, Spam ... etc
Post Reply
User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 473
Joined: 5 years ago
Location: The Red City ❤
Contact:

Bonus with Level

#1

Post by z0h1r-LK » 4 years ago

Bonus with Level
Description:
if you have level ex : 5 you will get Armor ...
Version 0.1 [Current Version]
- First Release
Note :
Any Dev you have idea poste in comment :)
You can change level :
  1. #define ITEMS1 5
  2. #define ITEMS2 10
  3. #define ITEMS3 15
  4. #define ITEMS4 20
  5. #define ITEMS5 25
Compile it and Enjoy :)
  1. #include <zombie_escape>
  2. #include <ze_levels>
  3. #include <fun>
  4.  
  5. #define ITEMS1 5
  6. #define ITEMS2 10
  7. #define ITEMS3 15
  8. #define ITEMS4 20
  9. #define ITEMS5 25
  10.  
  11. new Prefix[] = "[^4ZE^1]"
  12.  
  13. new Items[][] =
  14. {
  15.     "+50 Armor",
  16.     "+50 HP",
  17.     "+75 HP",
  18.     "+100 HP",
  19.     "Low Gravity"
  20. }
  21.  
  22. public plugin_init()
  23. {
  24.     register_plugin("[ZE] Bonus With Level", "0.1", "LiZou Mapper")
  25. }
  26.  
  27. public ze_user_humanized(id)
  28. {
  29.     if(ze_get_user_level(id) == ITEMS1)
  30.     {
  31.         set_user_armor(id, get_user_armor(id) +50)
  32.         client_print_color(id, print_chat, "%s You can get [^4%s^1]",Prefix,Items[0])
  33.     }
  34.    
  35.     if(ze_get_user_level(id) == ITEMS2)
  36.     {
  37.         set_user_health(id, get_user_health(id) +50)
  38.         client_print_color(id, print_chat, "%s You can get [^4%s^1]",Prefix,Items[1])
  39.     }
  40.    
  41.     if(ze_get_user_level(id) == ITEMS3)
  42.     {
  43.         set_user_health(id, get_user_health(id) +75)
  44.         client_print_color(id, print_chat, "%s You can get [^4%s^1]",Prefix,Items[2])
  45.     }
  46.  
  47.     if(ze_get_user_level(id) == ITEMS4)
  48.     {
  49.         set_user_health(id, get_user_health(id) +100)
  50.         client_print_color(id, print_chat, "%s You can get [^4%s^1]",Prefix,Items[3])
  51.     }
  52.    
  53.     if(ze_get_user_level(id) == ITEMS5)
  54.     {
  55.         set_user_gravity(id, 0.65)
  56.         client_print_color(id, print_chat, "%s You can get [^4%s^1]",Prefix,Items[4])
  57.     }  
  58.     return 1;
  59. }
Last edited by z0h1r-LK 2 years ago, edited 1 time in total.

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#2

Post by Raheem » 4 years ago

Good, try using ReAPI functions instead of fun ones.
He who fails to plan is planning to fail

User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 473
Joined: 5 years ago
Location: The Red City ❤
Contact:

#3

Post by z0h1r-LK » 2 years ago

Raheem wrote: 4 years ago Good, try using ReAPI functions instead of fun ones.
Thanks, But delete this thread, I create bonus manager is better from this

Bonus Manager: /viewtopic.php?f=15&t=3989

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#4

Post by Raheem » 2 years ago

OK, trashed.
He who fails to plan is planning to fail

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 5 guests