11.10.2014, 19:30
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/SpawnM4", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid, 31, 10000);
}
if (strcmp("/heal", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, "You have been healed!");
return 1;
}
return false;
}