How to skip onplayerrequestclass - 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: How to skip onplayerrequestclass (
/showthread.php?tid=663376)
How to skip onplayerrequestclass -
NoteND - 29.01.2019
Hey!
I know .. another post about this topic, however, I know a solution to this is to do SetSpawnInfo... and SpawnPlayer under OnPlayerRequestClass.. now, is there any other way of doing it without spawning player because I have custom spawninfo set but I'm not using SetSpawnInfo.. ty for help !
Re: How to skip onplayerrequestclass -
faxxe - 29.01.2019
Can you show us your code?
Re: How to skip onplayerrequestclass -
NoteND - 29.01.2019
Basically I have
veh = CreateVehicle...
PutPlayerInVehicle(playerid, veh);
Re: How to skip onplayerrequestclass -
NaS - 29.01.2019
You must spawn the player for the class selection to be skipped, that's the only way (or put them into spectate mode first). Just put the vehicle code from above into OnPlayerSpawn, and make sure the spawn info is set like you already mentioned.