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