Help with locking a skin
#2

pawn Код:
if ( gTeam[ playerid ] == TEAM_SWAT )
    {
        if(pInfo[playerid][pSwat] < 1 )
        {
            SendClientMessage(playerid, RED, "You are not authorised to use this skin");
            return 0;
        }

    }
    if ( gTeam[ playerid ] == TEAM_ARMY )
    {
        if(pInfo[playerid][pArmy] < 1 )
        {
            SendClientMessage(playerid, RED, "You are not authorised to use this skin");
            return 0;
        }

    }
Try now.

Also if you have problems with something you don't need to open new topic just take a look at the WIKI: https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn see it says there that if you return 0; that the player will not spawn.
Reply


Messages In This Thread
Help with locking a skin - by FunnyBear - 01.12.2014, 18:37
Re: Help with locking a skin - by Runn3R - 01.12.2014, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)