SA-MP Forums Archive
[FilterScript] My first FS - Bad Lang FS - 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] My first FS - Bad Lang FS (/showthread.php?tid=402677)



My first FS - Bad Lang FS - Frede - 27.12.2012

This is my first FS, so therefore please dont expect anything.
It is pretty simple.

If you wish more bad words added then add.
Code:
        if(strfind(text,"edit this") != -1)
 	{
		if(strfind(text,"edit me") != -1)
 	        {
		       if(lang[playerid] == 10)
		       {
                        SendClientMessage(playerid,RED,"You have been kicked because you was using bad Language!");
			Kick(playerid);
			lang[playerid] = 0;
		}
		else
		{
		        SendClientMessage(playerid,RED,"You are using bad lang!");
		        lang[playerid] = lang[playerid] + 1;
		}
 	}
Post it right under the already existing one.

Remember to edit all the "edit this" in the script.


Hobe you can use it


Re: My first FS - Bad Lang FS - Jochemd - 27.12.2012

This won't work. You should make the variable 'lang' per-player.


Re: My first FS - Bad Lang FS - Frede - 27.12.2012

i know, but it depend on what you need.


Re: My first FS - Bad Lang FS - Jochemd - 27.12.2012

Well no one needs this, because it does not work like it should.


Re: My first FS - Bad Lang FS - Frede - 27.12.2012

what it works on my server lol


Re: My first FS - Bad Lang FS - Jochemd - 27.12.2012

Read my first post; it's not per player.


Re: My first FS - Bad Lang FS - CoaPsyFactor - 27.12.2012

it works, you are right, but if 9 players write bad word 10th will be kicked


Re: My first FS - Bad Lang FS - Frede - 27.12.2012

ok i have fixed it.
Anyway ty for helping


Re: My first FS - Bad Lang FS - [HiC]TheKiller - 27.12.2012

You seem to be missing a closing bracket under
pawn Code:
lang[playerid] = 0;
You have 4 opening brackets and 3 closing brackets. Compiling this would cause an error .


Re: My first FS - Bad Lang FS - [HiC]TheKiller - 27.12.2012

EDIT: Lagged hard and posted it twice =/.


Re: My first FS - Bad Lang FS - Frede - 27.12.2012

I've also edited my main post so...


Re: My first FS - Bad Lang FS - Frede - 28.12.2012

Idk why your guys can't compile it. For me, it works great.