18.06.2014, 09:52
And if I can add something to the discussion, this is an example.
It could totally by something like this
It could totally by something like this
PHP Code:
native IsValidVehicle(vehicleid);
F:respawnVehs()
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(IsValidVehicle(i)) SetVehicleToRespawn(i);
}
return SendClientMessageToAll(-1, "All the vehicles have been delay respawned by an administrator !");
}
CMD:respawnall(playerid, params[])
{
if(!IsNumeric(params)) return SCM(playerid, -1, "SYNTAX : /respawnall [Delay (seconds)]");
new time = strval(params);
SetTimer("respawnVehs", time*1000, false);
return 1;
}