SA-MP Forums Archive
Help Bro's - 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 Bro's (/showthread.php?tid=613154)



Help Bro's - CrazyPerry - 25.07.2016

i just wanna know how to make this
if(strfind(text, "hacker", true) != -1)
{
SendClientMessage(playerid, COLOR_GREEN, "Use /report to report a hacker");
}
i want to make it. Here's an example if you type hacker then the sendclientmessage will appear
and the hacker that you type is still send in the chatbox how to make when you type "hacker" the "hacker" that you type is not gonna show it just gonna show the sendclientmessage

SORRY FOR MY BAD ENGLISH


Re: Help Bro's - Cheesus - 25.07.2016

Paste it on OnPlayerText
But first take a look here:
https://sampwiki.blast.hk/wiki/Strfind
https://sampwiki.blast.hk/wiki/OnPlayerText