01.03.2016, 19:50
First to ask if there is a simple way to make it possible, like with engine and lights case?
I assume there isn't such way, as I didn't find it anywhere, so I started making a script, based on old ones, just better. Then I got this idea to achieve it without the long script, but I don't have a clue if it's possible, as I don't know much coding for now.
Basically what I want is this, make a SAMP "think" that there is a driver in vehicle even if that isn't the case. As I understand SAMP is somehow checking if there is a driver in vehicle when player hits the vehicle. So it sounds possible to trick it to send different value then the one that is actually valid or better say true.
I'd use that in this call:
Now if anyone can tell me if that can be made and even better to tell me how ![Smiley](images/smilies/smile.png)
Thanks in advance!
Code:
ManualVehicleEngineAndLights();
Basically what I want is this, make a SAMP "think" that there is a driver in vehicle even if that isn't the case. As I understand SAMP is somehow checking if there is a driver in vehicle when player hits the vehicle. So it sounds possible to trick it to send different value then the one that is actually valid or better say true.
I'd use that in this call:
Code:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { if(hittype == 2 ) //2 or BULLET_HIT_TYPE_VEHICLE { //And then here would go the code that I need } return 1: }
![Smiley](images/smilies/smile.png)
Thanks in advance!