IsVehicleOccupied i GIVE REP ++
#3

Код:
stock IsVehicleOccupied2(vehicleid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerInVehicle(i, vehicleid)) return 1;
    }
   return 0;
}
}
If you want to check if a specific player is in the vehicle then you don't even need to make a stock, just use IsPlayerInVehicle

[code]
vehicleid = CreateVehicle(etc.
if(IsPlayerInVehicle(playerid, vehicleid))
{
SendClientMessage(etc
}
[/code
Reply


Messages In This Thread
IsVehicleOccupied i GIVE REP ++ - by buburuzu19 - 16.12.2014, 15:48
Re: IsVehicleOccupied i GIVE REP ++ - by M4D - 16.12.2014, 16:52
Re: IsVehicleOccupied i GIVE REP ++ - by Divergent - 16.12.2014, 17:26

Forum Jump:


Users browsing this thread: 1 Guest(s)