SHARE
TWEET

Untitled

a guest Aug 12th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <amxmodx>
  2. #include <cstrike>
  3.  
  4. #define PLUGIN "Plugin"
  5. #define VERSION "1.0"
  6. #define AUTHOR "SINTAX"
  7.  
  8.  
  9. public plugin_init()
  10. {
  11.     register_plugin(PLUGIN, VERSION, AUTHOR)
  12.    
  13.     register_clcmd("say /kupi","kupi")
  14. }
  15.  
  16. public kupi(id)
  17. {
  18.     new cena = 3000
  19.     new novac = cs_get_user_money(id)
  20.    
  21.    
  22.     if(novac <= cena)
  23.     {
  24.         client_print(id,print_chat,"Imate manje,ili jednako novca nego sto je cena...")
  25.     }
  26. }
RAW Paste Data
Top