24.11.2014, 20:28
(
Последний раз редактировалось FunnyBear; 24.11.2014 в 23:24.
)
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:
Taken from OnPlayerRequestClass,
^^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!
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
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);
}
If a player that is below pSwat level 1, a message would be sent to them saying that the skin is locked.#
Thanks!