16.02.2011, 04:13
This is in ZCMD i made /onduty /offduty you will need to edit a few things to go with your mode.
I even made it so it announces it to global players xD
Enjoy,
EDIT: typo
I even made it so it announces it to global players xD
pawn Код:
CMD:onduty(playerid, params[])
{
new aName[24];
new string [128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0x0,"Your not a Admin");//Set for RCON admins but change to your Admin variable
{
ShowPlayerMarkers(2);//Shows for nearby players and (1) = for all players
GetPlayerName(playerid, aName, sizeof(aName));
format(string, sizeof(string),"Admin %s [%d] is On Duty",aName,playerid);
SendClientMessageToAll(0x0,string);//Again change color
}
return true;
}
CMD:offduty(playerid, params[])
{
new aName[24];
new string [128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0x0,"Your not a Admin");//Set for RCON admins but change to your Admin variable
{
ShowPlayerMarkers(0);//Disables marker
GetPlayerName(playerid, aName, sizeof(aName));
format(string, sizeof(string),"Admin %s [%d] is Off Duty",aName,playerid);
SendClientMessageToAll(0x0,string);//Again change color
}
return true;
}
EDIT: typo