SA-MP Forums Archive
[FilterScript] VIP Protection - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] VIP Protection (/showthread.php?tid=604122)



VIP Protection - rootcause - 01.04.2016

This filterscript allows players to be VIPs or bodyguards, kinda like in GTA Online (although an inferior version). VIP players can't shoot their bodyguards and bodyguards can't shoot their VIP.




VIP Information

- You need at least $1,000,000 to become a VIP. If you have the required amount, you can use /becomevip to become a VIP. You'll stay VIP until you disconnect, the required amount won't be taken from you because of that. (You can configure the amount from VIP_REQUIRED define)
- You can hire up to 5 bodyguards. They're assigned to protect you, if they let you get killed their salary will get penalized. (You can configure the bodyguard limit from BODYGUARD_LIMIT define)

VIP Commands

/becomevip - Makes you VIP if you have the required amount of money.
/hire - Shows a list of available bodyguards, you can hire them to protect you.
/bodyguards - Shows a list of your bodyguards, you can fire them from here.
/vmsg - Sends a message to your bodyguards.
/vcol - Changes your label color, applies to bodyguard labels too.
/cancelvip - Removes your VIP status.

Bodyguard Information

- You can become an available bodyguard using /lookforjob, VIP players can hire you if they want to.
- You're assigned to protect your VIP. If your VIP gets killed, your salary will get penalized. (You can configure the penalty amount from SALARY_PENALTY define)
- Your salary will start at $5,000. Every time your VIP dies it will get penalized until it's $500. (You can configure the salary from STARTING_SALARY and configure the minimum salary from MIN_SALARY defines)
- To get paid, you must be near your VIP for 300 seconds. (You can configure the time from SALARY_TIME define)

Bodyguard Commands

/lookforjob - Makes you an available bodyguard. If you're already available, makes you unavailable.
/vmsg - Sends a message to your VIP and other bodyguards protecting your VIP.
/resign - Removes your bodyguard status.

Notes

- Since this filterscript disables damaging using OnPlayerWeaponShot, melee weapons still do damage. You can use weapon-config's OnPlayerDamage to disable melee damaging. Also it's a pretty nice include, go check it out!

Credits

Incognito for Streamer Plugin
Yashas for Improved ZCMD

Downloads

Mediafire || Pastebin



Re: VIP Protection - benjaminjones - 01.04.2016

With some good rework, this might come useful for the RP servers. Anyways, good job.


Re: VIP Protection - HydraHumza - 01.04.2016

Nice.


Re: VIP Protection - Saifullah - 01.04.2016

Good work.


Re: VIP Protection - Zorono - 02.04.2016

Nice Work
+Rep


Re: VIP Protection - MarleyBanks - 02.04.2016

Good work Rootcause, Keep it up bro.


Re: VIP Protection - rootcause - 03.04.2016

Quote:
Originally Posted by benjaminjones
View Post
With some good rework, this might come useful for the RP servers. Anyways, good job.
Indeed, thanks.

Quote:
Originally Posted by Humza
View Post
Nice.
Quote:
Originally Posted by Saifullah
View Post
Good work.
Quote:
Originally Posted by Zorono
View Post
Nice Work
+Rep
Quote:
Originally Posted by MarleyBanks
View Post
Good work Rootcause, Keep it up bro.
Thanks guys.


Re: VIP Protection - Dreamwall - 27.06.2016

Awesome, it would be cool if you could make a persons own terminator that kills those who tries to hit the person, a NPC bodyguards to


Re: VIP Protection - Xdrime - 27.06.2016

Sick as usual.


Re: VIP Protection - knuckleduster5 - 27.06.2016

Best Greek scripter!
I love it, thanks!


Re: VIP Protection - samp_boy - 27.06.2016

i love it! good job man