SA-MP Forums Archive
[FilterScript] No guns! - 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] No guns! (/showthread.php?tid=387550)



No guns! - -=Dar[K]Lord=- - 25.10.2012

Hello Sa-Mp Users. This Is My First Filterscript Named NO GUNS!

Itroduction To The Filterscript
This Fs[Filter script] is a usefull filterscript for those server who donot want the player to hack and get weapons or they cannot detect wether the hack is true or not.This System Enables only the Rcon Admin to have guns other than him/her the other players cannot have guns.

Commands & other features
As This Fs is developing is the first version it contains only 1 command:
1.] /Noguns

You May be thinking that this is a simple fs but no i have modified it little making sure u will love that ...
When a simple player trys to acces /noguns command he gets warnings. You can Change the limits of warnings As much as you want by changing The #define MAX_WARNS .

Images
Warnings:

http://imageshack.us/photo/my-images/401/samp000ez.png

When Kicked:

http://imageshack.us/photo/my-images...amp001sxs.png/

Filterscript:
Pastebin

Hope You Like this guys as this is my first fs .
Regards -=Dar[K]Lord=-


Re: No guns! - Lordzy - 25.10.2012

Not bad as this is your first fs.
But, I saw that you're using [256] as cells size.
A normal client message sends up to 128 only, so it's better changing it to 128.
pawn Code:
//Eg:
new str[128];
new Lname[MAX_PLAYER_NAME];
GetPlayerName(playerid,Lname,sizeof(Lname));
format(str,sizeof(str),"%s says 128 is the normal size used for a client message.", Lname);
SendClientMessage(playerid, -1, str);



Re: No guns! - -=Dar[K]Lord=- - 25.10.2012

Quote:
Originally Posted by Lordzā„¢
View Post
Not bad as this is your first fs.
But, I saw that you're using [256] as cells size.
A normal client message sends up to 128 only, so it's better changing it to 128.
pawn Code:
//Eg:
new str[128];
new Lname[MAX_PLAYER_NAME];
GetPlayerName(playerid,Lname,sizeof(Lname));
format(str,sizeof(str),"%s says 128 is the normal size used for a client message.", Lname);
SendClientMessage(playerid, -1, str);
Thks bro for taking out my fault as this will help me to improve my self in the future ..
EDITED!


Re: No guns! - Yamakei - 25.10.2012

Another idea that I gave someone else when it came to guns. - You should think about having a sound that clicks/plays when a warning comes.


Re: No guns! - Mafioso97 - 25.10.2012

Average, it doesn't take too much effort
6/10


Re: No guns! - -=Dar[K]Lord=- - 25.10.2012

Quote:
Originally Posted by Yamakei
View Post
Another idea that I gave someone else when it came to guns. - You should think about having a sound that clicks/plays when a warning comes.
Hmm Thks for the suggestion i will add it..