26.12.2010, 16:25
Hi everyone,
I've made this simple command:
But, if I'm in DM or AFK I can use /kill without any problems !
I hope you will help me
I've made this simple command:
pawn Код:
if(strcmp(cmdtext,"/kill",true)==0)
{
if(DM[playerid] == 1)
{
SendClientMessage(playerid, RED, "ERROR: You're in DM.");
return 0;
}
if(AFK[playerid] == 1)
{
SendClientMessage(playerid, RED, "ERROR: You're AFK.");
return 0;
}
SetPlayerHealth(playerid,0.0);
return 1;
}
I hope you will help me