21.10.2010, 16:26
Hello samp scripters ![Smiley](images/smilies/smile.png)
I am making a roleplay gamemode and I saw in another server that when I shoot on empty car, the car looses health.
I thought about it, so it's either with a function, or I will have to script that when the player is facing the angle then when the player has a weapon in his hand, then when the player presses key primary fire, the car looses health then I have to script it for each different weapon because each weapon do different damage...
Ofcourse not! ofcourse they did it with an easy way, either a function that you can toggle or something easier that what I said above cus that will be a pain in the ass and it will still be buggy!
So anyone have any idea how to make a car loose health when there is no driver in it?
Thanks.
![Smiley](images/smilies/smile.png)
I am making a roleplay gamemode and I saw in another server that when I shoot on empty car, the car looses health.
I thought about it, so it's either with a function, or I will have to script that when the player is facing the angle then when the player has a weapon in his hand, then when the player presses key primary fire, the car looses health then I have to script it for each different weapon because each weapon do different damage...
Ofcourse not! ofcourse they did it with an easy way, either a function that you can toggle or something easier that what I said above cus that will be a pain in the ass and it will still be buggy!
So anyone have any idea how to make a car loose health when there is no driver in it?
Thanks.