[FilterScript] My first FS - Bad Lang FS
#1

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

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

i know, but it depend on what you need.
Reply
#4

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

what it works on my server lol
Reply
#6

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

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

ok i have fixed it.
Anyway ty for helping
Reply
#9

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

EDIT: Lagged hard and posted it twice =/.
Reply
#11

I've also edited my main post so...
Reply
#12

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


Forum Jump:


Users browsing this thread: 1 Guest(s)