13.03.2009, 00:24
Quote:
Originally Posted by Mikep
You wan't the ID of the driver?
pawn Код:
|
You can use a variable to store the player last in it.
pawn Код:
new LastDriver[MAX_VEHICLES];
//OnPlayerStateChange
if(newstate == PLAYER_STATE_DRIVER)
{
LastDriver[GetPlayerVehicleID(playerid)] = playerid;
return 1;
}
//OnVehicleDeath
DestroyVehicle (vehicleid);
SendClientMessage (LastDriver[vehicleid], COLOR_RED, "His car was destroyed");