SA-MP Forums Archive
lol.. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: lol.. (/showthread.php?tid=192070)



lol.. - ColdXX - 21.11.2010

Lol.this aint working..help?

http://pastebin.com/3RydJDzm


Re: lol.. - Zh3r0 - 21.11.2010

What actually doesn't work? The teleport?


Re: lol.. - ColdXX - 21.11.2010

No...yea forgot to tell lol:P
The Velocity of the vehicle doesnt change,even tested with sendclientmessage and print,but nothing showed.


Re: lol.. - Zh3r0 - 21.11.2010

It's because you are checking if the player is near some coordination.

Check with this.
pawn Код:
IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
     GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
     SetVehicleVelocity(GetPlayerVehicleID(playerid), x * 6, y * 6, z * 6);
}
Also,m you want to speed up the vehicle as soon he reaches a position?
Or you want to speed up the vehicle when he teleports?


Re: lol.. - ColdXX - 21.11.2010

Quote:

Also,m you want to speed up the vehicle as soon he reaches a position?

yea

I thaught that IsPlayerInRageOfPont was pretty obvious...


Re: lol.. - Zh3r0 - 21.11.2010

Quote:
Originally Posted by ColdXX
Посмотреть сообщение
yea

I thaught that IsPlayerInRageOfPont was pretty obvious...
You didn't get me.
Then if you want that, how about setting a timer to check if the player is near that position and BOOST him?


Re: lol.. - ColdXX - 21.11.2010

ohh i see!
Okay ill try that