Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
You may have seen my previous thread about /kartdm, if not, its ok. What I want is to disable exiting the vehicle when someone attempts to exit the kart. (I just want them to stay in it)
Any idea?
Posts: 2,524
Threads: 109
Joined: Sep 2009
Reputation:
0
^ No please don't do that.. You can try locking the vehicle using vehicle params (which will probably not work) or put them again when they exit since you can't disable GTA:SA scripts unless the vehicle is locked (i'm sure there's a SA-MP function for that, well, not very sure but huh)
Posts: 273
Threads: 58
Joined: Jun 2009
Reputation:
0
Locking the vehicle will only keep the door locked from the outside not inside, that is the only way I can think of that would probably work for what he wants to do...
Posts: 2,524
Threads: 109
Joined: Sep 2009
Reputation:
0
I swear I've seen in a server the vehicle being locked from inside aswell. But, that is not the only way, it's just a waste of CPU usage. You can by much better use OnPlayerStateChange or OnPlayerExitVehicle SA:MP callbacks.
Posts: 273
Threads: 58
Joined: Jun 2009
Reputation:
0
Yeah that is true it is a waste but he wanted ideas :P That is the only way that comes to mind, but its really not worth it you can just make it like admantis said, OnPlayerExitVehicle and find out if he got out of a gokart and put him back into it or something like that. Good luck dude.
Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
No, RandomSpawn3 is the name of the variable, thats exactly what the code is like.