SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 27/12/2010, 10:43 AM   #1
wups
High-roller
 
wups's Avatar
 
Join Date: Apr 2010
Location: Lithuania
Posts: 1,369
Reputation: 132
Default Server Sided Weapons

Server Sided Weapons


Since my old weapon anti cheat is outdated, i've decided to create a new thread.
I've learned from my mistakes, and made some fixing.
The whole thing is scripted from scratch.

Features
• Doesn't ban innocent people, if you use it properly.
• Bans all cheaters who make weapons with cheats.
• Works with NON streamed weapon pickups.
• Works with Class weapons.
• Plug & Play
• Works with filterscripts

It still doesn't work with ammu-nation shops! I am not planing making a timer which checks if a player is in an ammunation etc. This will be fixed if i find a proper solution.

Installing

• Download the file and place in /pawno/includes

pawn Code:
#include <GAC>
• On the top of your game mode.
• And after "#define FILTERSCRIPT" in your filterscripts

Credits
• Double-O-Seven for some parts of the code.
• Me for everything else.

Testing
• I did some small testing on the GrandLarc game mode, everything seem to work.

Download
Pastebin(v2)

Last edited by wups; 21/03/2011 at 07:57 PM.
wups is offline   Reply With Quote
Old 27/12/2010, 10:54 AM   #2
wups
High-roller
 
wups's Avatar
 
Join Date: Apr 2010
Location: Lithuania
Posts: 1,369
Reputation: 132
Default Re: Server Sided Weapons

Oh wait, i forgot SetSpawn info..
Edit: fixed
wups is offline   Reply With Quote
Old 27/12/2010, 11:26 AM   #3
iJumbo
High-roller
 
iJumbo's Avatar
 
Join Date: Sep 2009
Location: HEX 69 74 61 6C 79
Posts: 2,248
Reputation: 133
Default Re: Server Sided Weapons

Nice !
__________________

Need a VPS? Get it here!
Website designer & developer php, html, css, html5, javascript
iJumbo is offline   Reply With Quote
Old 27/12/2010, 12:48 PM   #4
willsuckformoney
High-roller
 
willsuckformoney's Avatar
 
Join Date: Dec 2009
Posts: 1,505
Reputation: 65
Default Re: Server Sided Weapons

Sexay...
__________________
Fuck the system.
willsuckformoney is offline   Reply With Quote
Old 27/12/2010, 01:47 PM   #5
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 4,116
Reputation: 904
Default Re: Server Sided Weapons

Very nice, although show maybe the functions in the include >.< OR does it not use custom cash functions?
__________________

192.169.82.202:7777 - An awesome CnR server consisting of doozy features! Come, we have players!


Lorenc_ is offline   Reply With Quote
Old 27/12/2010, 06:25 PM   #6
FreshKilla
Big Clucker
 
FreshKilla's Avatar
 
Join Date: Feb 2008
Location: Canada
Posts: 149
Reputation: 7
Default Re: Server Sided Weapons

You shouldn't make it banable, What if people are SA-MP lag bugged were the variable will set to 0 and he still has the weapon in his hand because he's lag bugged and he'll get banned.... and it should have a code were it sets the PlayerWeapon[weaponid] to 0 when he has no more ammo for it because it might bug up all you have to do is get a server side weapon with like 1 Ammo then hack the same gun and get like 100 bullets free without getting caught.
FreshKilla is offline   Reply With Quote
Old 27/12/2010, 06:27 PM   #7
RealCop228
Godfather
 
Join Date: Feb 2010
Location: Springboro, OH
Posts: 8,268
Reputation: 670
Default Re: Server Sided Weapons

Quote:
Originally Posted by FreshKilla View Post
You shouldn't make it banable, What if people are SA-MP lag bugged were the variable will set to 0 and he still has the weapon in his hand because he's lag bugged and he'll get banned.... and it should have a code were it sets the PlayerWeapon[weaponid] to 0 when he has no more ammo for it because it might bug up all you have to do is get a server side weapon with like 1 Ammo then hack the same gun and get like 100 bullets free without getting caught.
You can easily go in and change "Ban()" to "Kick()".

Good job, by the way.
__________________
Putting [URGENT] in the thread title stops me from opening the thread. Nobody else's problem on this forum is more important that another person's. Try not to be self-centered!
RealCop228 is offline   Reply With Quote
Old 27/12/2010, 08:33 PM   #8
wups
High-roller
 
wups's Avatar
 
Join Date: Apr 2010
Location: Lithuania
Posts: 1,369
Reputation: 132
Default Re: Server Sided Weapons

Quote:
Originally Posted by FreshKilla View Post
You shouldn't make it banable, What if people are SA-MP lag bugged were the variable will set to 0 and he still has the weapon in his hand because he's lag bugged and he'll get banned.... and it should have a code were it sets the PlayerWeapon[weaponid] to 0 when he has no more ammo for it because it might bug up all you have to do is get a server side weapon with like 1 Ammo then hack the same gun and get like 100 bullets free without getting caught.
Well, i haven't got any problems with the first argument, and about the free bullets - Thats why i made it ban, so people wouldn't experiment the anti-cheat. Most of cheaters go on a server make a few weapons without even thinking about any silly anti-cheat.
wups is offline   Reply With Quote
Old 29/12/2010, 11:12 AM   #9
HACKHERS
Big Clucker
 
Join Date: Jan 2009
Posts: 193
Reputation: 0
Default Re: Server Sided Weapons

Good can u do it with bit optimise ?
HACKHERS is offline   Reply With Quote
Old 29/12/2010, 02:08 PM   #10
wups
High-roller
 
wups's Avatar
 
Join Date: Apr 2010
Location: Lithuania
Posts: 1,369
Reputation: 132
Default Re: Server Sided Weapons

Quote:
Originally Posted by HACKHERS View Post
Good can u do it with bit optimise ?
I don't think so.
wups is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Sided Money Toni Help Archive 9 12/08/2010 01:06 PM
very very simple server sided weapons in progress belhot Help Archive 4 03/06/2010 10:01 PM
Idea: Server Sided Guns! Arsham7 Help Archive 3 14/03/2010 03:11 AM
server sided Skin mods mini-d Help Archive 1 15/02/2009 12:01 AM


All times are GMT. The time now is 03:32 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.