SA-MP Forums Archive
[HELP] text AntiCheat - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] text AntiCheat (/showthread.php?tid=305274)



[HELP] text AntiCheat - c0GI - 21.12.2011

Hy I must have a script like a TEXT Anticheat!! Ok, i will explain now!!! When any player type a character with letters PS, VR or AD, the anticheat will see a admin lik this!!!

for example : Anticheat:Player:[ID:1][Name_Surname]>i dont know this admin<PS,VR or AD!

That admin see!! Can anyone MAKE THAT SCRIPT!! PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Re: [HELP] text AntiCheat - c0GI - 21.12.2011

When any player type a letters with PS VR or AD the sentences will be show to admins!! lik that!! )

Little stupid, but that will help me to find a cheater or anything!!!!!!


Re: [HELP] text AntiCheat - c0GI - 22.12.2011

Can you help me? PLEASE


Re: [HELP] text AntiCheat - park4bmx - 22.12.2011

quick example
EDIT forgot to inset the callback
pawn Код:
public OnPlayerText(playerid,text[])
{
if(strcmp(text,"PS",false))
{
    for(new otherid=0;otherid<MAX_PLAYERS;otherid++)
    {
        if(IsPlayerAdmin(otherid))//change this to your admins system's enum or what ever you use
        {
            new Name[MAX_PLAYER_NAME];GetPlayerName(playerid,Name,sizeof(Name));
            new Str[128];format(Str,128,"Player: %s Has Used: %s",Name,text);
            SendClientMessage(otherid,-1,Str);
        }
   
    }
}
return 1;
}



Re: [HELP] text AntiCheat - c0GI - 22.12.2011

Thank you sooooo much!!! I will try that script ))


Re: [HELP] text AntiCheat - c0GI - 22.12.2011

Ouu.... park4bmx that script it doesn't work!! When i insert that script in gamemod and press F5 button, the errors and warrnings are show

Quote:

D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(12262) : warning 219: local variable "Name" shadows a variable at a preceding level
D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45440) : error 010: invalid function or declaration
D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45442) : error 010: invalid function or declaration
D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45444) : error 010: invalid function or declaration
D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45446) : error 021: symbol already defined: "GetPlayerName"
D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45447) : error 021: symbol already defined: "format"
D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45451) : error 054: unmatched closing brace ("}")
D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45453) : warning 203: symbol is never used: "Name"
D:\Nikola i Marko\[BE] Balkan Evolution Role Play\gamemodes\gtarp.pwn(45453) : warning 203: symbol is never used: "Str"

Can you help me how to fix that? xD


Re: [HELP] text AntiCheat - kizla - 22.12.2011

show to us OnPlayerText(playerid,text[]) callback, all things that you have inside


Re: [HELP] text AntiCheat - c0GI - 22.12.2011

okej! just a moment


Re: [HELP] text AntiCheat - c0GI - 22.12.2011

ouus sorry! I don't know what I must show you?? Can you explain me?


Re: [HELP] text AntiCheat - c0GI - 22.12.2011

park4bmx can you help me?