19.07.2011, 20:57
Quote:
The title says it all, is there a function to check if ANY player is in/driving that vehicle.
|
pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
for (new i = 0; i != MAX_PLAYERS; i++)
{
if(IsPlayerInAnyVehicle(i))
{
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
}
return 1;
}