onplayerrequestclass help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: onplayerrequestclass help (
/showthread.php?tid=252017)
onplayerrequestclass help -
fissekarl - 29.04.2011
Hello, for a specific team, when they press f4 and they go to next class selection, I tried to do
SpawnPlayer(playerid);
A timer, then inside the timer SpawnPlayer.
But it's just not removing him from the class selection, any ideas/help please
Re: onplayerrequestclass help -
Tee - 29.04.2011
SetPlayerHealth(playerid,0.0);
SpawnPlayer(playerid);
Re: onplayerrequestclass help -
iggy1 - 29.04.2011
Before 'SpawnPlayer' try using this function
https://sampwiki.blast.hk/wiki/SetSpawnInfo
Re: onplayerrequestclass help -
Mr.GeEk - 29.04.2011
Quote:
Originally Posted by fissekarl
Hello, for a specific team, when they press f4 and they go to next class selection, I tried to do
SpawnPlayer(playerid);
A timer, then inside the timer SpawnPlayer.
But it's just not removing him from the class selection, any ideas/help please 
|
you can use the fuction SetPlayerTeam before SpawnPlayer(playerid);
https://sampwiki.blast.hk/wiki/SetPlayerTeam
Re: onplayerrequestclass help -
iggy1 - 29.04.2011
Quote:
Originally Posted by Mr.GeEk
|
Epic. Did you know one of the parameters in 'SetSpawnInfo' sets the players team?