SA-MP Forums Archive
anti base rape..? - 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: anti base rape..? (/showthread.php?tid=660246)



anti base rape..? - xRadical3 - 28.10.2018

I want a script when a player is from a team with hydra
Attacks on another team's base.
The player inside the hydra send message "Do not base rape"..


Re: anti base rape..? - v1k1nG - 28.10.2018

Check if player is in a vehicle.
https://sampwiki.blast.hk/wiki/IsPlayerInAnyVehicle

Check which vehicle is the player driving.
https://sampwiki.blast.hk/wiki/GetVehicleModel or https://sampwiki.blast.hk/wiki/GetPlayerVehicleID

Check if the player driving the hydra is in the area.
https://sampwiki.blast.hk/wiki/Areacheck

Send him the message.


Re: anti base rape..? - xRadical3 - 28.10.2018

Quote:
Originally Posted by v1k1nG
View Post
Check if player is in a vehicle.
https://sampwiki.blast.hk/wiki/IsPlayerInAnyVehicle

Check which vehicle is the player driving.
https://sampwiki.blast.hk/wiki/GetVehicleModel or https://sampwiki.blast.hk/wiki/GetPlayerVehicleID

Check if the player driving the hydra is in the area.
https://sampwiki.blast.hk/wiki/Areacheck

Send him the message.
and how to check the hydra attack a player team ??


Re: anti base rape..? - v1k1nG - 28.10.2018

https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage

Check if issuerid is in a hydra and playerid is in base.
And here don't forget to check if issuerid is connected.


Re: anti base rape..? - RogueDrifter - 28.10.2018

https://github.com/BrunoBM16/samp-tvws

This can take care of the vehicle weapons.