SA-MP Forums Archive
[FilterScript] AntiDB-System v1.0 - 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] AntiDB-System v1.0 (/showthread.php?tid=597996)



AntiDB-System v1.0 - Bolex_ - 07.01.2016

This is Anti Drive-By simple system, meaning when you enter in the vehicle with weapons, your weapon will disappear when you leave the vehicle, weapons you back in your hands.

Pastebin:http://pastebin.com/mL2eUK3Y
DW Link:https://www.sendspace.com/file/0q0ljd



Re: AntiDB-System v1.0 - prineside - 07.01.2016

"Weapon" array size is 2, "Ammo" array size is 25, but both of them are used in "for" loop with 12 iterations (using iteration number as array index). Did you run this code at least once?


Re: AntiDB-System v1.0 - Bolex_ - 07.01.2016

Quote:

"Weapon" array size is 2, "Ammo" array size is 25, but both of them are used in "for" loop with 12 iterations (using iteration number as array index). Did you run this code at least once?

Sorry for mistake 2 is changed to 25,also change if you want to [50]


Re: AntiDB-System v1.0 - Cypress - 07.01.2016

This is a bad way of doing that. You can simple use SetPlayerArmedWeapon( playerid, 0 ); which basically sets the players weapon to fist; you don't need to mess with weapon savings and that kind of stuff.

Also if you are concerned about someone spawning a weapon by cheating, just check if player is firing ( check if the fire key is pressed, doesn't require a timer either ) and apply SetPlayerArmedWeapon again. Simple, ain't it?


Re: AntiDB-System v1.0 - Bolex_ - 07.01.2016

Should be Simple,thanks for Suggestion,as i said Simple AntiDB


Re: AntiDB-System v1.0 - Cypress - 07.01.2016

Quote:
Originally Posted by Scripter18
View Post
Should be Simple,thanks for Suggestion,as i said Simple AntiDB
The other method is simpler than yours because you don't have to deal with unnecessary functions and arrays

Other than that, keep it up.


Re: AntiDB-System v1.0 - justice96 - 07.01.2016

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

I've made for this, you can review it. anyway, keep it up bro.


Re: AntiDB-System v1.0 - prineside - 07.01.2016

Quote:
Originally Posted by Scripter18
View Post
Sorry for mistake 2 is changed to 25,also change if you want to [50]
Wow, cool, could I change it to [9001]? I like this number, your filterscript will look awesome with it. Seems like its simple enough, can I use any number?


Re: AntiDB-System v1.0 - Bolex_ - 08.01.2016

Sure you can use 99999999999999999


Re: AntiDB-System v1.0 - Elegy - 08.01.2016

Nice +Rep