Untitled
public text v1 · immutable SendClientMessageToAll(COLOR_WHITE, "G: Starting DriverID loop...");
for(new i=0; i<MAX_PLAYERS;i++)
{
//We dont want to scan the passenger player ID..
if(i != passengerplayerid)
{
//Check if this player is inside the vehicle ID Supplied
if(IsPlayerInAnyVehicle(i)) {
if(IsPlayerInVehicle(i,vehicleid)) {
SendClientMessageToAll(COLOR_WHITE, "H: Found a player in the given vehicleid");
Result = i;
break;
}
}
}
}