new SaveVelTimer[MAX_PLAYERS];
new Float:VelS[3];
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SaveVelTimer[playerid] = SetTimerEx("SaveVelocity",500, true, "i", playerid);
return 1;
}
forward SpeedUpdate();
public SpeedUpdate()
{
new Float:Velocity[3];
GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
if(Velocity[0] >= VelS[0] && Velocity[1] >= VelS[1])
{
//Moving Forward ?
}else if(Velocity[0] <= VelS[0]&& Velocity[1] <= VelS[1])
{
//Moving Backwords ?
}else if(Velocity[0] == VelS[0]&& Velocity[1] == VelS[1])
{
//Same Pos ?
}
return 1;
}
forward SaveVelocity(playerid);
public SaveVelocity(playerid)
{
GetVehicleVelocity(GetPlayerVehicleID(playerid), VelS[0], VelS[1], VelS[2]);
return 1;
}
Lol.
A Drift Points Plugin, i was planning to release the best drift counter but this...ruin all my plans Release aborted Good Job, when i install San Andreas Again ( if i install ) i will test to see how it works xD EDIT: pawn Код:
|