Set team REP+
#1

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+
Reply
#2

How do you define if a player has chosen a team?
Reply
#3

Are we meant to guess your code?
Reply
#4

First: you should not say Reward REP+, cause some are just mad people for rep.


pawn Код:
// 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
}
This is just an example, dont really copy it, just look closer and try to understand what I tried to say with this code.
Reply
#5

As I said its Lobby 7

Код:
#define Lobby 7
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)