SA-MP Forums Archive
OnPlayerStateChange Question!! - 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: OnPlayerStateChange Question!! (/showthread.php?tid=552616)



OnPlayerStateChange Question!! - kesarthakur - 25.12.2014

Is there any way to call OnPlayerStateChange function while changing from vehicle to vehicle without getting on foot...

Please answer me!!!
Thanks in advance


AW: OnPlayerStateChange Question!! - Nero_3D - 25.12.2014

You can't change from one vehicle to another without exiting the first therefor there is no reason why OnPlayerStateChange should detect that (without exterior help from the script)

If you force the player to change vehicle with PutPlayerInVehicle you are doing it clearly scriptwise and you know when that is happening, thus you don't need a native callback for that, you can create your own