30.08.2009, 11:44
Total edit:
I put this in OnPlayerEnterVehicle();
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();
Thnx for your help kc 'all I needed was a clear mind'
Grts Riz
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;
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;
}
Grts Riz