With this the script works it returns what i just wrote ingame...
Code:
#include <amxmodx>
#include <string>
public plugin_init() {
// ..
register_clcmd("say","handle_say")
}
public handle_say(id) {
new message[298]
read_argv(2,message,297)
client_print(id,print_chat,"You said: %s",message)
return PLUGIN_CONTINUE
}
What i want it to do is. So when i f.e write healme <3000> ( healme <cash> ) then it should use the 3000 to go to an if function like this:
Code:
if (cs_get_user_money(id) > 3000) {
cs_set_user_money(id,get_user_money(id)) - 3000
client_print(id,print_chat,"You just bought 50 HP")
}
And then i dont know how i can get the word/intergers (3000) into the if function...
Hope you'll understand this..