#1

What do i use to find out who is in a car
Reply
#2

pawn Код:
stock GetPlayerInCar(vehicleid)
{
    for(new i = 0; i < 500; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2)
            return i;
        else continue;
    }
    return INVALID_PLAYER_ID;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)