15.06.2013, 23:41
Make sure you have a variable that specifies the player that is in the skin selection.
Example: on top of your script you'd make a new variable: SkinSelecting[MAX_PLAYERS];
And you'd assign it once the player registers and moves on to the skin selection (SkinSelecting[playerid = 1)
And disable it once they're done (SkinSelecting[playerid = 0)
And then:
Hope this helps.
Example: on top of your script you'd make a new variable: SkinSelecting[MAX_PLAYERS];
And you'd assign it once the player registers and moves on to the skin selection (SkinSelecting[playerid = 1)
And disable it once they're done (SkinSelecting[playerid = 0)
And then:
pawn Код:
if(classid == 0 && SkinSelecting[playerid == 1)
{
GameTextForPlayer(playerid,"~b~nice team",2000,5);
SetPlayerPos(playerid,1268.7476,-900.2996,42.8828);
SetPlayerCameraPos(playerid,1268.6455,-904.1758,42.8828);
SetPlayerFacingAngle(playerid,187.4978);
SetPlayerCameraLookAt(playerid,1268.7476,-900.2996,42.882);
}