02.05.2010, 08:50
SetTimerEx("Question", 1000, 0, "i", playerid);
What is the playerid for? Is that who it sets the timer for?
If i replaced playerid with a objectname or a vehicle name, Will it do it for that vehicle only?
So if i was to put
Would that respawn pVeh[0] when the timer has finished?
What is the playerid for? Is that who it sets the timer for?
If i replaced playerid with a objectname or a vehicle name, Will it do it for that vehicle only?
So if i was to put
pawn Код:
CMD:RMC(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You need to be in a vehicle to use this command");
SetTimerEx("VehRespawn", 1000, 0, "i", pVeh[0]);
SendClientMessage(playerid, COLOR_GREY, "Car respawning in 1 second.");
return 1;
}
forward VehRespawn(vehicleid);
public VehRespawn(vehicleid)
{
SetVehicleToRespawn(vehicleid);
return 1;
}