30.06.2012, 03:09
pawn Код:
forward OnPlayerDestroy(playerid, vehicleid);
forward DestroyVehicleEx(playerid, vehicleid);
public DestroyVehicleEx(playerid, vehicleid){
DestroyVehicle(vehicleid);
CallLocalFunction("OnPlayerDestroy", "dd", playerid, vehicleid);
}
public OnPlayerDestroy(playerid, vehicleid){
printf("Player %d destroyed vehicle %d", playerid, vehicleid);
return true;
}