[SOLVED]Speed = 9000+ ?
#3

Total edit:

I put this in OnPlayerEnterVehicle();
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
SavePlayerPos[playerid][LastX] = x;
SavePlayerPos[playerid][LastY] = y;
SavePlayerPos[playerid][LastZ] = z;
Now the speed onplayerentervehicle is lowered , it has a "peek" of 990 now and then goes back 2 0...
OnPlayerEnterVehicle(); isn't the right pos?

EDIT agian xD:
SOLVED!!

I put the code in OnplayerStateChange();
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
SavePlayerPos[playerid][LastX] = x;
SavePlayerPos[playerid][LastY] = y;
SavePlayerPos[playerid][LastZ] = z;
}
Thnx for your help kc 'all I needed was a clear mind'

Grts Riz
Reply


Messages In This Thread
[SOLVED]Speed = 9000+ ? - by Rizard - 30.08.2009, 11:29
Re: Speed = 9000+ ? - by kc - 30.08.2009, 11:33
Re: Speed = 9000+ ? - by Rizard - 30.08.2009, 11:44

Forum Jump:


Users browsing this thread: 2 Guest(s)