07.09.2012, 17:29
pawn Код:
dcmd_rac(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(!IsVehicleOccupied(i)) return 0;
SetVehicleToRespawn(i);
}
}
return 1;
}
pawn Код:
stock IsVehicleOccupied(vehicleid)
{
for(new i =0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i,vehicleid))
{
return 1;
}
}
return 0;
}
**Compiles fine.