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