onplayerrequestclass help
#1

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

SetPlayerHealth(playerid,0.0);
SpawnPlayer(playerid);
Reply
#3

Before 'SpawnPlayer' try using this function https://sampwiki.blast.hk/wiki/SetSpawnInfo
Reply
#4

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
Reply
#5

Quote:
Originally Posted by Mr.GeEk
Посмотреть сообщение
you can use the fuction SetPlayerTeam before SpawnPlayer(playerid);https://sampwiki.blast.hk/wiki/SetPlayerTeam
Epic. Did you know one of the parameters in 'SetSpawnInfo' sets the players team?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)