01.12.2010, 08:14
Код:
if (strcmp(cmd, "/kill", true) == 0) { if(PlayerInfo[playerid][pJailedSec] > 0) { SendClientMessage(playerid, COLOR_RED, "You cannot kill yourself if you're in the jail."); } else { SetPlayerHealth(playerid, 0); new pname[24]; new string[100]; GetPlayerName(playerid,pname,24); format(string,sizeof(string), "%s has killed them self!",pname); SendClientMessageToAll(COLOR_RED,string); } return 1; }
![Smiley](images/smilies/smile.png)