[Pedido]Anti flood/repetir palavras -'
#10

Quote:
Originally Posted by RoacH`
Посмотреть сообщение
pawn Код:
#include < a_samp >

new rFlood [ MAX_PLAYERS ] ;

public OnPlayerText ( playerid , text [ ] )
{
    //onplayertext
    new pvar [ 128 ] ;
    GetPVarString ( playerid , "UltimoTexto" , pvar , sizeof ( pvar ) ) ;
    if ( strlen ( pvar ) && !strcmp ( pvar , text ) ) {
        SendClientMessage ( playerid , -1 , "Pare de repetir no chat!" ) , rFlood [ playerid ] ++ ;
        return 0 ;
    }
    SetPVarString ( playerid , "UltimoTexto" , text ) ;
    if ( rFlood [ playerid ] == 3 ) return rFlood [ playerid ] = 0 , Kick ( playerid ) ;
    return 0 ;
}

CONTINUO SEM KICKAR
Reply


Messages In This Thread
[Pedido]Anti flood/repetir palavras -' - by Edu33 - 24.04.2012, 22:47
Re: [Pedido]Anti flood/repetir palavras -' - by dPlaYer_ - 24.04.2012, 22:51
Re: [Pedido]Anti flood/repetir palavras -' - by Edu33 - 24.04.2012, 22:53
Re: [Pedido]Anti flood/repetir palavras -' - by DartakousLien - 24.04.2012, 22:57
Re: [Pedido]Anti flood/repetir palavras -' - by RoacH` - 24.04.2012, 22:57
Re: [Pedido]Anti flood/repetir palavras -' - by dPlaYer_ - 24.04.2012, 22:58
Re: [Pedido]Anti flood/repetir palavras -' - by DartakousLien - 24.04.2012, 23:06
Re: [Pedido]Anti flood/repetir palavras -' - by Edu33 - 24.04.2012, 23:13
Re: [Pedido]Anti flood/repetir palavras -' - by RoacH` - 24.04.2012, 23:20
Re: [Pedido]Anti flood/repetir palavras -' - by Edu33 - 24.04.2012, 23:37

Forum Jump:


Users browsing this thread: 2 Guest(s)