/facmask problem
#1

Quote:
PHP код:
CMD:facmask(playeridparams[])
{
    new 
name[MAX_PLAYER_NAME];
    new 
string[42];
    if((!
IsACop(playerid) || !IsALVMPDCop(playerid))) return SendClientMessageEx(playeridCOLOR_GREY"   You are not a member of L.E.O !");
    if(
HasBoughtMask[playerid] != 1) return SendClientMessage(playeridCOLOR_GREY"You don't have a mask.");
    if(
PlayerInfo[playerid][pMask] == 0)
    {
            for(new 
0MAX_PLAYERSi++)
            {
                    if(
IsPlayerConnected(i))
                    {
                            
ShowPlayerNameTagForPlayer(iplayerid0);
                    }
            }
            
PlayerInfo[playerid][pMask] = 1;
            
SetPlayerAttachedObject(playerid1190372104.70.090900);
            
GetPlayerName(playeridnamesizeof(name));
            
format(stringsizeof(string), "* Stranger has put a mask on.");
            
ProxDetector(15.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    else if(
PlayerInfo[playerid][pMask] == 1)
    {
            for(new 
0MAX_PLAYERSi++)
            {
                    if(
IsPlayerConnected(i))
                    {
                            
ShowPlayerNameTagForPlayer(iplayerid1);
                    }
            }
            
PlayerInfo[playerid][pMask] = 0;
            
RemovePlayerAttachedObject(playerid1);
            
GetPlayerName(playeridnamesizeof(name));
            
format(stringsizeof(string), "* Stranger has put their mask away.");
            
ProxDetector(15.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    return 
1;

Once i /facmask it send me that first return > You are not a member of L.E.O ! . Even i am a leo.
Can you please help me to fix it

Problem fixed
Reply


Messages In This Thread
/facmask problem ( Fixed ) - by SoFahim - 02.11.2015, 13:28
Re: /facmask problem - by jlalt - 02.11.2015, 13:34
Re: /facmask problem - by SoFahim - 02.11.2015, 13:37
Re: /facmask problem - by jlalt - 02.11.2015, 13:46
Re: /facmask problem - by SoFahim - 02.11.2015, 13:50

Forum Jump:


Users browsing this thread: 1 Guest(s)