13.03.2009, 00:21
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;
}