DestroyVehicle
#2

pawn Код:
// Top of the script
new pTempVeh[MAX_PLAYERS]; // a per-player global var to store a player's temporary vehicle in
// The following code goes where you spawn a vehicle
if(GetPlayerVehicleID(playerid) == pTempVeh[playerid]) // if the player in his/her temporary vehicle
    DestroyVehicle(pTempVeh[playerid]); // destroy it
   
pTempVeh[playerid] = CreateVehicle(583, -1547.6190,-442.2964,9.0000, 0.0000, -1, -1, 100); // assigns the temp vehicle variable to the vehicle we created
PutPlayerInVehicle(playerid, pTempVeh[playerid], 0);
Reply


Messages In This Thread
DestroyVehicle - by TheDeath - 27.07.2012, 18:32
Re: DestroyVehicle - by [KHK]Khalid - 27.07.2012, 18:45
Re: DestroyVehicle - by TheDeath - 27.07.2012, 18:56
Re: DestroyVehicle - by TheDeath - 27.07.2012, 19:14
Re: DestroyVehicle - by [KHK]Khalid - 27.07.2012, 19:19
Re: DestroyVehicle - by milanosie - 27.07.2012, 19:20
Re: DestroyVehicle - by TheDeath - 27.07.2012, 19:21
Re: DestroyVehicle - by TheDeath - 27.07.2012, 19:26
Re: DestroyVehicle - by [KHK]Khalid - 27.07.2012, 19:29

Forum Jump:


Users browsing this thread: 1 Guest(s)