Little Help
#6

Quote:
Originally Posted by Sanady
Посмотреть сообщение
Thank you for your nicely help, but next time you don`t comment my title of topic, thank you
You still haven't told us what it is that you want. For the vehicle to be destroyed or not?
If you do want the vehicle to be destroyed then save the vehicle id of the vehicle the player was previously inside, under OnPlayerStateChange check if he changed states from state driver to state wasted, check if his last vehicle was "AdminCar" (by checking if that variable you just made equals the AdminCar variable), do an inverse check of what you did under OnPlayerDeath, check if the player is not in a vehicle and destroy it, like so: "if (!IsPlayerInVehicle(playerid, AdminCar)) DestroyVehicle(AdminCar);", actually you don't need that last "IsPlayerInVehicle" check but just to play it safe...
Reply


Messages In This Thread
Little Help - by Sanady - 13.07.2015, 21:37
Re: Little Help - by Toxik - 13.07.2015, 22:34
Re: Little Help - by Virtual1ty - 13.07.2015, 23:45
Re: Little Help - by Sanady - 14.07.2015, 12:22
AW: Little Help - by FSAOskar - 14.07.2015, 12:26
Re: Little Help - by Virtual1ty - 14.07.2015, 14:25
Re : Re: Little Help - by KillerDVX - 15.07.2015, 04:52

Forum Jump:


Users browsing this thread: 1 Guest(s)