11.04.2012, 08:39
pawn Код:
CMD:onduty(playerid, params[])
{
if(PlayerInfo[playerid][Level] < 2)return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
CMDMessageToAdmins(playerid,"Now On Duty");
GetPlayerName(playerid, adminname, sizeof(adminname));
SetPlayerSkin(playerid,217);
GivePlayerWeapon(playerid,38,500000);
SetPlayerHealth(playerid,100000);
SetPlayerColor(playerid,pink);
format(string,256,"Administrator %s Has Now On Admin Duty",adminname);
SendClientMessage(i,pink,string);
return 1;
}
CMD:offduty(playerid, params[])
{
if(PlayerInfo[playerid][Level] < 2)return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
CMDMessageToAdmins(playerid,"Now On Duty");
GetPlayerName(playerid, adminname, sizeof(adminname));
ResetPlayerWeapons(playerid);
ForceClassSelection(playerid);
SetPlayerHealth(playerid,0);
format(string,256,"Administrator %s Has End With His Admin Duty",adminname);
SendClientMessage(i,pink,string);
return 1;
}