28.02.2012, 21:42
Quote:
ok i make that i steal car that is already placed but how to destroy it but only thief car
public OnPlayerEnterRaceCheckpoint(playerid,TEAM_THIEF) { DestroyVehicle(GetVehicleModel(GetPlayerVehicleID( playerid))); return 1; } |
pawn Код:
GetVehicleModelID
pawn Код:
GetPlayerVehicleID
So it should be like this.
pawn Код:
DestroyVehicle(GetPlayerVehicleID(playerid));