Need help in a team selection system
#2

You need to read more into the functions you have in the gamemode, and server.

Even though you are using PlayerClass functions, when they OnPlayerSpawn you can still set their spawn location by simply invoking SetPlayerPos.

Same with OnPlayerRequestClass. (Which is when they are switching classes, in the Class Selection window)

PHP Code:
OnPlayerConnect // First connection
OnPlayerRequestClass // First class selection/switching classes (Add SetPlayerPos, SetPlayerInterior, SetPlayerFacingAngle, SetPlayerCameraPos SetPlayerCameralLookAt in here for your spawn screen location.)
OnPlayerRequestSpawn // Selecting to spawn
OnPlayerSpawn // Upon spawning use SetPlayerPos, SetPlayerFacingAngle, SetPlayerInterior, and SetCameraBehindPlayer 
Read into the teams system. When you set the team via the native sa-mp server it also turns FriendlyFire off with no option to reenable it.

I noticed Gammix has an include called gTeams, which could help you out.
Reply


Messages In This Thread
Need help in a team selection system - by Ankon - 25.07.2016, 06:59
Re: Need help in a team selection system - by Sew_Sumi - 25.07.2016, 09:41
Re: Need help in a team selection system - by Ankon - 25.07.2016, 10:06
Re: Need help in a team selection system - by Sew_Sumi - 25.07.2016, 12:48
Re: Need help in a team selection system - by Ankon - 26.07.2016, 04:17
Re: Need help in a team selection system - by Sew_Sumi - 26.07.2016, 05:01
Re: Need help in a team selection system - by Shinja - 26.07.2016, 22:00

Forum Jump:


Users browsing this thread: 2 Guest(s)