01.10.2011, 12:48
Hey, I have a command for god on/off. I want when a player have /god and kill someone automatically his health set to 0 and die. How can i do this.
pawn Код:
if (strcmp("/godon", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xAA3333AA,">>");
SendClientMessage(playerid,COLOR_RED,"GodMod ON!");
SetPlayerHealth(playerid,99999);
return 1;
}
if (strcmp("/godoff", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xAA3333AA,">>");
SendClientMessage(playerid,COLOR_RED,"GodMod OFF!");
SetPlayerHealth(playerid,100);
return 1;
}