SHARE
TWEET

Untitled

a guest Aug 12th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <fun>
  4.  
  5. #define PLUGIN "Plugin"
  6. #define VERSION "1.0"
  7. #define AUTHOR "SINTAX"
  8.  
  9.  
  10. public plugin_init()
  11. {
  12.     register_plugin(PLUGIN, VERSION, AUTHOR)
  13.    
  14.     register_clcmd("say /kupi","kupi")
  15. }
  16.  
  17. public kupi(id)
  18. {
  19.     new helti3 = 50
  20.     new helti = get_user_health(id)
  21.    
  22.    
  23.     if(helti3 <= helti)
  24.     {
  25.         client_print(id,print_chat,"Da bi ste kupili 50 helti, morate da imate manje ili tacno 50 helti...")
  26.        
  27.         return PLUGIN_HANDLED
  28.     }
  29.    
  30.     else
  31.     {
  32.         set_user_health(id,get_user_health(id)+50)
  33.         client_print(id,print_chat,"Dobili ste jos 50 helti")
  34.        
  35.         return PLUGIN_HANDLED
  36.     }
  37.    
  38.     return PLUGIN_HANDLED
  39. }
RAW Paste Data
Top