[FilterScript] AntiDB-System v1.0
#1

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
Reply
#2

"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?
Reply
#3

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]
Reply
#4

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?
Reply
#5

Should be Simple,thanks for Suggestion,as i said Simple AntiDB
Reply
#6

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.
Reply
#7

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

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

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?
Reply
#9

Sure you can use 99999999999999999
Reply
#10

Nice +Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)