Thief job
#6

Quote:
Originally Posted by livests
Посмотреть сообщение
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;
}
You wouldn't use
pawn Код:
GetVehicleModelID
because that is to determine, well the model id! You should use
pawn Код:
GetPlayerVehicleID
because you want to get the car that the player is in.
So it should be like this.
pawn Код:
DestroyVehicle(GetPlayerVehicleID(playerid));
Reply


Messages In This Thread
Thief job - by livests - 28.02.2012, 14:58
Re: Thief job - by Roperr - 28.02.2012, 15:16
Re: Thief job - by livests - 28.02.2012, 15:23
Re: Thief job - by Roperr - 28.02.2012, 15:27
Re: Thief job - by livests - 28.02.2012, 21:25
Re: Thief job - by Walsh - 28.02.2012, 21:42
Re: Thief job - by livests - 29.02.2012, 06:20
Re: Thief job - by Walsh - 29.02.2012, 12:37

Forum Jump:


Users browsing this thread: 2 Guest(s)