/aduty problem
#4

pawn Код:
new PlayerColor[MAX_PLAYERS];

// stuff here

CMD:aduty(playerid,params[])
{
    if(pInfo[playerid][Adminlevel] >= 1)
    {
       new string[120];
       PlayerColor[playerid] = GetPlayerColor(playerid);
       SetPlayerColor(playerid,COLOR_PINK);
       SetPlayerHealth(playerid, 99999);
       format(string,sizeof(string),"Admin %s(%d) has switched to admin mode you are not allowed to interfer him!",GetName(playerid),playerid);
       SendClientMessageToAll(COLOR_PINK,string);
    }
    return 1;
}

CMD:offduty(playerid,params[])
{
    if(pInfo[playerid][Adminlevel] >= 1)
    {
       new string[120];
       SetPlayerToTeamColor(playerid);
       SetPlayerHealth(playerid, 100);
       format(string,sizeof(string),"Admin %s(%d) is off duty now you may interfer with him now!",GetName(playerid),playerid);
       SendClientMessageToAll(COLOR_PINK,string);
    }
    return 1;
}
Reply


Messages In This Thread
/aduty problem - by DarkLored - 18.10.2013, 01:15
Re: /aduty problem - by xganyx - 18.10.2013, 01:19
Re: /aduty problem - by DarkLored - 18.10.2013, 01:23
Re: /aduty problem - by PT - 18.10.2013, 01:36
Re: /aduty problem - by DarkLored - 18.10.2013, 01:39
Re: /aduty problem - by xganyx - 18.10.2013, 01:57
Re: /aduty problem - by DarkLored - 18.10.2013, 01:59
Re: /aduty problem - by xganyx - 18.10.2013, 04:23
Re: /aduty problem - by Zex Tan - 18.10.2013, 05:15
Re: /aduty problem - by denNorske - 18.10.2013, 08:06

Forum Jump:


Users browsing this thread: 1 Guest(s)