[HELP] Takedrugs command !
#2

pawn Код:
if(gTeam[playerid] == TEAM_COP && PlayerInfo[playerid][pRank] == 1 || gTeam[playerid] == TEAM_ARMY && PlayerInfo[playerid][pRank] == 2)
    {
        SendClientMessage(playerid, COLOR_WHITE, "Error: Cops only for this feature!");
        return 1;
    }
There you are telling it TO NOT WORK for cops (and army)

this is what you need to do:

pawn Код:
if(gTeam[playerid] != TEAM_COP && PlayerInfo[playerid][pRank] == 1 || gTeam[playerid] != TEAM_ARMY && PlayerInfo[playerid][pRank] == 2)
    {
        SendClientMessage(playerid, COLOR_WHITE, "Error: Cops only for this feature!");
        return 1;
    }
Reply


Messages In This Thread
[HELP] Takedrugs command ! - by [Aka]Dragonu - 02.12.2010, 18:57
Re: [HELP] Takedrugs command ! - by Ash. - 02.12.2010, 19:38
Re: [HELP] Takedrugs command ! - by [Aka]Dragonu - 03.12.2010, 06:10
Re: [HELP] Takedrugs command ! - by [Aka]Dragonu - 03.12.2010, 10:23
Re: [HELP] Takedrugs command ! - by Johndaonee - 03.12.2010, 10:30
Re: [HELP] Takedrugs command ! - by [Aka]Dragonu - 03.12.2010, 10:55

Forum Jump:


Users browsing this thread: 1 Guest(s)