#1

I wanted to make a system in pawn.What is it?Well we all know that players keep shouting hacker in main chat over, and over..so i want a system that can prevent players from saying "hacker" and some bad words.I saw that system in some server and it was pretty awesome.

Example: Players types "hacker", System: That is an Invalid or bad word.

But since i am still new to the scripting, does anyone know how to make that.If someone knows send the code in the replies, Thanks!
Reply
#2

Here are some links, and you are on your way to knowledge

https://sampwiki.blast.hk/wiki/OnPlayerText
https://sampforum.blast.hk/showthread.php?tid=335123
Reply
#3

PHP код:
static const cBadWords[][] = {"hacker""cheater" /*, ... */};

for(new 
isizeof(cBadWords); i++)
{
    if(
strfind(textcBadWords[i], true))
    {
        
// bad word
        
return 0// or break if you still want to handle some more code
    
}

Simple example.
Reply
#4

Thanks guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)