21.07.2010, 02:58
Code:
new timer[MAX_PLAYERS];
Code:
public OnPlayerConnect(playerid)
{
timer[playerid] = SetTimerEx("fast",25000,1,"i",playerid);
return 1;
}
We could have fun like so:
Code:
forward fast(playerid);
public fast(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
new veh = GetPlayerVehicleID(playerid);
new Float:x,Float:y,Float:z;
GetVehiceVelocity(veh,x,y,z);
SetVehicleVelocity(veh,x+50,y,z);
}
return 1;
}
If you have more players, it wouldn't be really wise to use per-player-timers. You could use a "for" loop every 25 seconds.

