22.10.2012, 03:18
Mods will do what they feel is correct. You do not have to post it.
OT - Code for respawning all unused cars
1.paste this stock out of any callback
2. Heres the command(in ZCMD)
You must have basic knowledge of what stocks are and where to put them
For the speedometer.
Click Here
OT - Code for respawning all unused cars
1.paste this stock out of any callback
PHP код:
stock IsVehicleOccupied(vehicleid) // Returns 1 if there is anyone in the vehicle
{
for(new i=0;i<MAX_PLAYERS;i++;)
{
if(IsPlayerInAnyVehicle(i))
{
if(GetPlayerVehicleID(i)==vehicleid)
{
return 1;
}
else
{
return 0;
}
}
}
return 1;
}
PHP код:
CMD:respawncars(playerid, params[])
{
for(new i=0; i<MAX_VEHICLES; i++)
{
if(!IsVehicleOccupied(i))
{
DestroyVehicle(i);
}
}
return 1;
}
For the speedometer.
Click Here