01.02.2013, 01:21
i need a /respawnallcars
command(rac, playerid, params[])
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
SetVehicleToRespawn(i);
}
}
But how can i add dis
if a player in a car it don't spawn how to make that? |
public VehicleOccupied(vehicleid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerInVehicle(i,vehicleid)) return 1;
}
return 0;
}
if(!VehicleOccupied(i))
{
SetVehicleToRespawn(i);
}