[HELP]Can use playerid in OnVehicleDeath
#3

You wan't the ID of the driver?

pawn Код:
stock GetVehicleDriver(vehicleid)
{
  for(new i; i<MAX_PLAY; i++)
  {
    if (IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2)
    {
      return i;
    }
  }
  return -1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)