SA-MP Forums Archive
Making RHino and Hydra and Hunter harmless - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Making RHino and Hydra and Hunter harmless (/showthread.php?tid=375344)



Making RHino and Hydra and Hunter harmless - UnlimitedFreeroam - 06.09.2012

Hello Everyone,



Iґm trying to make the Hydra, Rhino and Hunter harmless But i canґt find a way how to make this.
Is it possible and if ґYesґ How??

Thanks


Re: Making RHino and Hydra and Hunter harmless - C00K13M0N$73R - 06.09.2012

SetVehicleHealth


Re: Making RHino and Hydra and Hunter harmless - Deal-or-die - 06.09.2012

So do you want to disable the Hydra and Rhino from being able to shoot or do you want to make then have infinite health?


Re: Making RHino and Hydra and Hunter harmless - UnlimitedFreeroam - 06.09.2012

Quote:
Originally Posted by Deal-or-die
Посмотреть сообщение
So do you want to disable the Hydra and Rhino from being able to shoot or do you want to make then have infinite health?
I just want them disable for being shooting


Re: Making RHino and Hydra and Hunter harmless - [HK]Ryder[AN] - 06.09.2012

Quote:
Originally Posted by RanSEE
Посмотреть сообщение
That will set the vehicle's health. He wants to make that if someone shoots while sitting in those vehicles(as all of them are armed) the player who gets hit is NOT harmed. The weapons in the vehicle should be harmless.


Re: Making RHino and Hydra and Hunter harmless - kaisersouse - 06.09.2012

Not sure if this will work, but you can set up a routine in on playerkeyupdate (or whatever it is):

Код:
If person pushing FIRE/SECONDARY FIRE button:
     If person in hydra/hunter/whatever (use GetVehicleModel to figure out the modelid of their vehicle):
          return 0;
Not sure returning 0 will block the built-in firing functions, but its worth a shot. Id try it for you, but I'm at work ATM


Re: Making RHino and Hydra and Hunter harmless - UnlimitedFreeroam - 06.09.2012

Ye that's what I mean.


Re: Making RHino and Hydra and Hunter harmless - UnlimitedFreeroam - 06.09.2012

Hmm It Didn't worked


Re: Making RHino and Hydra and Hunter harmless - kaisersouse - 06.09.2012

Quote:
Originally Posted by UnlimitedFreeroam
Посмотреть сообщение
Hmm It Didn't worked
Then you'd have to handle it on the target-end and give the person they are shooting their health back in OnPlayerTakeDamage

Are people allowed to otherwise kill each other in your server? If not, then set them to the same team. OR if you only allow killing in DM areas, make a team w/ a high number, set regular players to that (so they cant hurt each other) and in DM set people to the same team number as their playerid.


Re: Making RHino and Hydra and Hunter harmless - iTorran - 06.09.2012

https://sampforum.blast.hk/showthread.php?tid=311067