Variables. - 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: Variables. (
/showthread.php?tid=296092)
Variables. -
Tomejus - 09.11.2011
Hello everyone!
Have a question... s0b.eit have a funcion which disables all car data and when all variables are disabled. So with HOME (button) you can go into car and for example destroy vehicle, or do something. The strange thing is that only cheater seeing that he droves the car, others players doesn't see it (they see that the cheater is near car, but not into the car). And... this is my enemy, because cheaters coming and destroying players cars... I can't do anything, because everything is not working like if's or something. Is there any possibility to do something about it? Is SA:MP can do something? Thank ya all for answer, don't expect much, but if you know, please let me know.
Re: Variables. -
wups - 09.11.2011
Check whether OnVehicleDeath is called.
Re: Variables. -
Tomejus - 09.11.2011
I was thinking about this... But who check? I can't detect if someone is in the vehicle (tested) and so on... : D so basiclly i don't have what to check.
Re: Variables. -
wups - 09.11.2011
Quote:
Originally Posted by Tomejus
I was thinking about this... But who check? I can't detect if someone is in the vehicle (tested) and so on... : D so basiclly i don't have what to check.
|
Just to see if it gets called.
You can do:
GetPlayerState(playerid) under OnVehicleDeath. Though I'm not sure that will work.
What does GetPlayerVehicleID say?
Re: Variables. -
Tomejus - 09.11.2011
Try'd by state, doesn't work, because how i was said only cheaters see that they are in car other players seeing that player is right next for player (i mean standing near the car). You can run vehicle engine (because my script requires PLAYER_STATE_DRIVER) cheater gets message that he's not the driver, so state doesn't work either. I was searching for solution like a half year, but doesn't found... and it' seems to continue. I may post a video later and you see how it looks.
It seems that SA:MP cannot do anything in this case, it's really sad... It makes no sense for playin SA:MP then cheaters can do everything they want...