26.12.2010, 16:29
Try this:
Let me know if it works or not.
pawn Код:
if(strcmp(cmd, "/kill" true) == 0)
{
if(DM[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, " ERROR: This command cannot be used inside the DM area!");
return 1;
}
if(AFK[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, " ERROR: You cant use this command while being AFK!");
return 1;
}
else
{
SetPlayerHealth(playerid, 0);
return 1;
}
}

