CopDuty problem
#1

Well, there's a problem...
I've made it where you need to be a LAPD officer to go on copduty and use cuff etc.
And this sounds very noobish, but for an odd reason, it's not allowing me to do that after I use /setfactionleader
Setfactionleader is fully functional on other factions, just not LAPD.
Here's my code
P.S: I CBA to find it myself, if you could do this for me, i'd be happy lol

pawn Код:
CMD:pduty(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 1)
    {
        if(CopDuty[playerid] == 0)
        {
            new string[128];
            format(string, sizeof(string), "%s grabs a badge and a police belt from the locker.", PlayerNameEx(playerid));
            ProxDetector(15.0, playerid, string, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA);
            GPW(playerid, 24, 250);
            GPW(playerid, 3, 1);
            GPW(playerid, 41, 400);
            GPW(playerid, 25, 200);
            SetPlayerColor(playerid, COP_COLOR);
            SetPlayerArmour(playerid, 100);
            SetPlayerHealth(playerid, 100);
            CopDuty[playerid] = 1;
        }
        else
        {
            new string[128];
            format(string, sizeof(string), "%s puts his badge and police belt back in the locker with his supplies.", PlayerNameEx(playerid));
            ProxDetector(15.0, playerid, string, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA);
            ResetPlayerWeapons(playerid);
            SetPlayerColor(playerid, -1);
            CopDuty[playerid] = 0;
        }
    }
    return 1;
}
Reply


Messages In This Thread
CopDuty problem - by VladCanarez - 07.10.2012, 15:21
Re: CopDuty problem - by Chriham3 - 07.10.2012, 15:24
Re: CopDuty problem - by VladCanarez - 07.10.2012, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)