21.07.2010, 00:49
How do I make individual player timers? Like using MAX_PLAYERS and where there is a timer for each [playerid]
for(new i = 0; i <MAX_PLAYERS; i++)
{
SetTimerEx("HideDraw", 15000, 0, "i", playerid);
new timer[MAX_PLAYERS];
public OnPlayerConnect(playerid) { timer[playerid] = SetTimerEx("fast",25000,1,"i",playerid); return 1; }
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; }