11.02.2009, 18:49
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/duty", true) == 0)
{
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid,24, 500);
GivePlayerWeapon(playerid,25,500);
GivePlayerWeapon(playerid,41,5000);
GivePlayerWeapon(playerid,3,5);
GivePlayerWeapon(playerid,29,1500);
SetPlayerSkin(playerid,282);
SendClientMessage(playerid, 0xFFFFFFAA, "You are now on duty!");
return 1;
}
return 1;
}