SA-MP Forums Archive
Set team REP+ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Set team REP+ (/showthread.php?tid=538575)



Set team REP+ - SWGamer - 22.09.2014

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+


Re: Set team REP+ - ranme15 - 22.09.2014

How do you define if a player has chosen a team?


Re: Set team REP+ - KayJ - 22.09.2014

Are we meant to guess your code?


Re: Set team REP+ - XStormiest - 22.09.2014

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.


Re: Set team REP+ - SWGamer - 22.09.2014

As I said its Lobby 7

Код:
#define Lobby 7