05.04.2012, 14:04
pawn Код:
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
if(GetPlayerWantedLevel(playerid) > 0)
{
return SendClientMessage(playerid,0xFF4500AA,"You can't use this command while wanted!");
}
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, 0xFF4500AA,"You have killed yourself using /kill");
//suicide cmd
return 1;
}