29.05.2012, 21:24
Comando:
no final do seu script:
pawn Код:
if(strcmp(cmdtext, "/rc",true)==0)
{
if(!IsPlayerAdmin(playerid)) return false;
for(new cars=0; cars<MAX_VEHICLES; cars++)
{
if(!VehicleOccupied(cars))
{
SetVehicleToRespawn(cars);
}
}
return 1;
}
pawn Код:
forward VehicleOccupied(vehicleid);
public VehicleOccupied(vehicleid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerInVehicle(i,vehicleid)) return 1;
}
return 0;
}