SA-MP Forums Archive
Bug GetPlayerSpecialAction? And Add OnPlayerPutPlayerInVehicle? - 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: Bug GetPlayerSpecialAction? And Add OnPlayerPutPlayerInVehicle? (/showthread.php?tid=490688)



Bug GetPlayerSpecialAction? And Add OnPlayerPutPlayerInVehicle? - HitnKill - 27.01.2014

I don't know if it's an bug but not appear on 0.3z

I have a problem with the function GetPlayerSpecialAction to detect when an player crouching On the callback OnPlayerKeyStateChange, i use OnPlayerUpdate to detect it but OnPlayerUpdate use too much resource i think

ps: More explanation on this topic: https://sampforum.blast.hk/showthread.php?tid=192662

And if it's possible to add this callback "OnPlayerPutPlayerInVehicle" for don't use OnPlayerUpdate for some cheat (TP multi vehicule and other...) Thanks


Re: Bug GetPlayerSpecialAction? And Add OnPlayerPutPlayerInVehicle? - [FSaF]Jarno - 28.01.2014

What would exactly call "OnPlayerPutPlayerInVehicle"? There's no way a player can "put" another player in a vehicle...
(Yes, i know you can have a command for that but that doesn't mean it's the player who puts the other player into the vehicle)


Re: Bug GetPlayerSpecialAction? And Add OnPlayerPutPlayerInVehicle? - gtaplayer1 - 28.01.2014

Quote:
Originally Posted by HitnKill
Посмотреть сообщение
I don't know if it's an bug but not appear on 0.3z

I have a problem with the function GetPlayerSpecialAction to detect when an player crouching On the callback OnPlayerKeyStateChange, i use OnPlayerUpdate to detect it but OnPlayerUpdate use too much resource i think

ps: More explanation on this topic: https://sampforum.blast.hk/showthread.php?tid=192662

And if it's possible to add this callback "OnPlayerPutPlayerInVehicle" for don't use OnPlayerUpdate for some cheat (TP multi vehicule and other...) Thanks
I'm not 100% sure what you mean by "OnPlayerPutPlayerInVehicle", but I think you are saying when a player enters a vehicle, if that is what you mean then you can use OnPlayerEnterVehicle.

Also: This isn't really a bug with "GetPlayerSpecialAction", that function is working as intended here.


Re : Bug GetPlayerSpecialAction? And Add OnPlayerPutPlayerInVehicle? - HitnKill - 28.01.2014

Quote:
Originally Posted by [FSaF]Jarno
Посмотреть сообщение
What would exactly call "OnPlayerPutPlayerInVehicle"? There's no way a player can "put" another player in a vehicle...
(Yes, i know you can have a command for that but that doesn't mean it's the player who puts the other player into the vehicle)
"OnPlayerPutInVehicle" it's better, because certainly cheat put the cheaters in lot of vehicle on 1 second example for TP vehicule on the cheater i think for SYNC the vehicule.