20.11.2017, 20:43
I tried to make a spam checker is this right?
Also what is the function to get a players xyz and check their xyz I cant seem to find it in the samp.inc
PHP код:
#include <a_samp>
public SpamCheck()
{
//stores first message
OnPlayerText(playerid, text[]);
new pText[144];
format (pText, sizeof (pText), "%s", playerid, text)
//stores second message
OnPlayerText(playerid, text[]);
new pTextb[144];
format (pTextb, sizeof (pTextb), "%s", playerid, text)
if (pTextb==pText)
{
SendClientMessage(playerid, FF0000, "Please Stop Spamming!");
return 1;
}
else
{
return;
}
}