/duty Bugged
#6

I have no idea why did you create the same topic, but okay.
http://forum.sa-mp.com/showthread.ph...04#post3249404
Let's answer this one more time.
pawn Код:
YCMD:duty(playerid, params[], help)
{
        #pragma unused help
        #pragma unused params
        if(P_Data[playerid][pAdmin] == 3) return SCM(playerid, COLOR_RED, "You aren't an admin!");
        new
            string[128];
        if(P_Data[playerid][pDuty] == 3) {
        SetPlayerHealth(playerid,100);
        SetPlayerColor(playerid,-1);
        format(string,sizeof(string)," {FF0000} %s is now off Duty!",GetName(playerid));
        SCMToAll(-1,string); P_Data[playerid][pDuty] = 1;}
        else {
        format(string,sizeof(string)," {FF0000} %s is now on Duty!",GetName(playerid));
        SetPlayerHealth(playerid,99999);
        SetPlayerColor(playerid,0xFF000000);
        SCMToAll(-1,string); P_Data[playerid][pDuty] = 3;} // <---- This
        return 1;
}
Reply


Messages In This Thread
/duty Bugged - by AYOUYOU - 09.11.2014, 07:13
Re : /duty Bugged - by AYOUYOU - 09.11.2014, 07:21
Re: /duty Bugged - by mirza1221 - 09.11.2014, 07:23
Re: /duty Bugged - by Quickie - 09.11.2014, 07:25
Re: /duty Bugged - by Banana_Ghost - 09.11.2014, 07:26
Re: /duty Bugged - by dominik523 - 09.11.2014, 08:21

Forum Jump:


Users browsing this thread: 1 Guest(s)