Help with locking a skin
#1

Hey,

I'm trying to lock the SWAT and Army skin to people with SWAT/Army level 1 or above (saved in the MySQL)

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

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

    }
That is under OnPlayerRequestSpawn, I added the SetPlayerHealth because it would just send a message once you've spawned.

I'm trying to set it so that if you don't have a SWAT/Army level it wont let you spawn when you click the 'Spawn' button when your choosing a player skin/class, it will send you a message saying you can't use it and it wont let you spawn. (Wont spawn the player) How could I add this?

Thanks
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)