22.09.2014, 14:56
So if you do not choose a class and press the spawn button a player will get stay within border bug.So I want it to set the player to Lobby,Team ID 7 and you may add a class.
Reward REP+
Reward REP+
// This is just an example, not an actual code, so try to think it logic and evern make more of it.
public OnPlayerRequestClass(playerid, class) { // when the player requests for class selection.
//other shits
SetPlayerPos(playerid, lobbyposX, lobbyposY, lobbyPosZ); // set the positions to your lobby position
SetPlayerFacingAngle(playerid, lobbyAngle); // set the angle to your angle position.
SetPlayerCameraBehindPlayer(playerid); // it change the camera behind player, but the player spawn button is still available, so you can still choose your class and shit, I recomand to delete the SetCameraPositions and staff...
}
public OnPlayerRequestSpawn(playerid) { // It is executed until the player choose his class.
SpawnPlayer(playerid);
}
public OnPlayerSpawn(playerid) {
// your class functions and other things you want
}
#define Lobby 7