Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <cstrike>
- #include <fun>
- #define PLUGIN "Plugin"
- #define VERSION "1.0"
- #define AUTHOR "SINTAX"
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- register_clcmd("say /kupi","kupi")
- }
- public kupi(id)
- {
- new helti3 = 50
- new helti = get_user_health(id)
- if(helti3 <= helti)
- {
- client_print(id,print_chat,"Da bi ste kupili 50 helti, morate da imate manje ili tacno 50 helti...")
- return PLUGIN_HANDLED
- }
- else
- {
- set_user_health(id,get_user_health(id)+50)
- client_print(id,print_chat,"Dobili ste jos 50 helti")
- return PLUGIN_HANDLED
- }
- return PLUGIN_HANDLED
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement