Hi guy's. I try to make a simple plugin there u can say /.,.,.,.,.,. and u will get a random nade (he, flash, smoke).
But I get error in this code:
PHP Code:
register_clcmd (" say /.,.,.,.,.,. ", "say_cmd_handle");
}
public TrixCheat (id)
{
{
{
switch(random_num(0, 3))
{
case 0: give_item(id, "give_item(id, "weapon_hegrenade");
case 1: give_item(id, "give_item(id, "weapon_smokegrenade");
case 2: give_item(id, "give_item(id, "weapon_flashgrenade");
case 3: give_item(id, "set_user_health(id, get_user_health(player) + 100);
{
client_print (id, print_chat, "You Just bought some Triix, shh!")
}
}
}
I'm not a good scripter so i hope u guy's can help me out.
sry my english.