11.08.2012, 16:22
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/kill", cmdtext, true, 10) == 0)
SetPlayerHealth (playerid, 0);
SendClientMessage (playerid, 0x4D34B3FF, "You have killed yourself.");
return 1;
}
{
if (strcmp("/heal", cmdtext, true, 10) == 0)
SetPlayerHealth (playerid, 100);
SendClientMessage (playerid, 0x4D34B3FF, "You have healed yourself.");
return 1;
}