Admin Marker
#2

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

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;
}
Enjoy,

EDIT: typo
Reply


Messages In This Thread
Admin Marker - by bernardo - 16.02.2011, 01:29
Re: Admin Marker - by YungGee - 16.02.2011, 04:13
Re: Admin Marker - by AlExAlExAlEx - 16.02.2011, 06:22
Re: Admin Marker - by _Tommy - 16.02.2011, 06:46
Re: Admin Marker - by YungGee - 16.02.2011, 08:54

Forum Jump:


Users browsing this thread: 1 Guest(s)