Locking a skin to certain players
#1

Hey,

I've made both the SWAT and ARMY teams and I'm wondering how I could lock the team only to certain players. I have them both in my MySQL database and I just need to add the lock to the skins,

SWAT:

pawn Код:
pInfo[playerid][pSwat] // pArmy for army
Taken from OnPlayerRequestClass,

pawn Код:
case 9 :
            {
                SetPlayerInterior(playerid, 0);
                GameTextForPlayer( playerid, "~b~S.W.A.T", 3000, 4 );
                gTeam[ playerid ] = TEAM_SWAT;
                /////////////////////////[REMEMBER TO CHANGE]///////////////////////////////
                SetPlayerPos(playerid, 1996.9724,-1969.3861,16.6941); // REMEMBER TO CHANGE
                SetPlayerFacingAngle(playerid, 357.1197); // REMEMBER TO CHANGE
                SetPlayerCameraPos(playerid, 1997.2798,-1964.0056,16.6941); // REMEMBER TO CHANGE
                SetPlayerCameraLookAt(playerid, 1996.9724,-1969.3861,16.6941); // REMEMBER TO CHANGE
                ApplyAnimation( playerid, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0, 1 );
                SetPlayerColor(playerid,TEAM_COLOR_SWAT);

            }
^^I'm not sure if you need onplayerrequestclass or requestspawn to lock the skin

If a player that is below pSwat level 1, a message would be sent to them saying that the skin is locked.#

Thanks!
Reply


Messages In This Thread
Locking a skin to certain players - by FunnyBear - 24.11.2014, 20:28
Re: Locking a skin to certain players - by Abagail - 24.11.2014, 21:10
Re: Locking a skin to certain players - by FunnyBear - 24.11.2014, 23:23

Forum Jump:


Users browsing this thread: 1 Guest(s)