Paramedic command help please.
#4

[PAWN]

stock IsVehicleOccupied(vehicleid) {
foreach(Player,i) {
if(GetPlayerVehicleID(i) == vehicleid && IsPlayerInAnyVehicle(i))
return 1;
}
return INVALID_VEHICLE_ID;
}

[\PAWN]

FIXED WITH


stock IsVehicleOccupied(vehicleid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i,vehicleid))
return 1;
}
return 0;

}
Reply


Messages In This Thread
Paramedic command help please. - by alexandrumicnea - 16.04.2014, 20:30
Re: Paramedic command help please. - by Dziugsas - 16.04.2014, 20:39
Re: Paramedic command help please. - by Dziugsas - 16.04.2014, 20:44
Re: Paramedic command help please. - by alexandrumicnea - 16.04.2014, 20:48

Forum Jump:


Users browsing this thread: 1 Guest(s)