PutPlayerInVehicle issue - 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: PutPlayerInVehicle issue (
/showthread.php?tid=371090)
PutPlayerInVehicle issue -
mati233 - 22.08.2012
Hello guys,
I have a timer that checks if the player is in any vehicle, and if it is not PutPlayerInVehicle(playerid, 43, 0);
To put the player on the vehicle 43 on the driver seat, but the player is just teleported to the vehicle and doesn't enters the vehicle.
But if I try to do /gotov 43 0 that will do exactly the same thing.
Do you have any idea why could this problem be? The timer is being created with the SetTimerEx.
I didn't post any code because is really simple, the timer just have that line of code.
Thanks for your time, I'll +REP you
Re: PutPlayerInVehicle issue -
[MM]RoXoR[FS] - 22.08.2012
make sure no one is as driver when you trying to put him in vehicle
Re: PutPlayerInVehicle issue -
mati233 - 22.08.2012
Yes, I'm prety sure about that, I'm testing it alone on my server, and it works when I do it manualy, out of the timer...
Re: PutPlayerInVehicle issue -
mati233 - 22.08.2012
Sorry for bumping, but now I tried to use OnPlayerCommandText(playerid, "/gotov 43 0"); on the timer, and it doesn't work either. But again, it is working on typed manualy.
Really weird :S
Re: PutPlayerInVehicle issue -
[MWR]Blood - 22.08.2012
Show us how you set the timer and the function that it is calling.
Re: PutPlayerInVehicle issue -
mati233 - 22.08.2012
Solved, the problem was with other timer that was clearing an animation, thanks anyway.