11.02.2012, 04:27
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/healme",cmdtext,true,10) == 0) {
SetPlayerHealth(playerid,100);
SendClientMessage(playerid, 0xFFFFFF, "You Healed Yourself!");
return 1;
}
if(strcmp("/killme",cmdtext,true,10) == 0) {
SetPlayerHealth(playerid,0);
SendClientMessage(playerid, 0xFFFFFF, "You Killed Yourself!");
return 1;
}
return 0;
}