Anti text spam
#10

Affan's code is wrong..
Try this
PHP код:
new pLastMsg[100][MAX_PLAYERS];
public 
OnGameModeInit()
{
    for(new 
ij=MAX_PLAYERSi<ji++) { format(pLastMsg[i], 100"!9sd4f"); }
    return 
1;
}
public 
OnPlayerText(playeridtext[])
{
    if(!
strcmp(textpLastMsg[playerid], true))
    {
        
//Have wrote the same message
        //Do something
        //return 0; to prevent sending the message
    
}
     
format(pLastMsg[playerid], 100text);
    return 
1;

Reply


Messages In This Thread
Anti text spam - by iLearner - 20.08.2016, 14:02
Re: Anti text spam - by Shinja - 20.08.2016, 14:15
Re: Anti text spam - by iLearner - 20.08.2016, 14:44
Re: Anti text spam - by SyS - 20.08.2016, 14:53
Re: Anti text spam - by oMa37 - 20.08.2016, 14:59
Re: Anti text spam - by Affan - 20.08.2016, 15:05
Re: Anti text spam - by Shinja - 20.08.2016, 15:20
Re: Anti text spam - by Jefff - 20.08.2016, 15:21
Re: Anti text spam - by iLearner - 21.08.2016, 10:43
Re: Anti text spam - by Shinja - 21.08.2016, 12:59

Forum Jump:


Users browsing this thread: 1 Guest(s)