26.10.2012, 02:42
Final do script:
Usagem:
Funзгo criada por min.
pawn Код:
stock IsPlayerFlooding(p, time){
static
getMessageTime [ MAX_PLAYERS char ]
;
if ( getMessageTime { p } != 0 ) {
if ( ( gettime() - getMessageTime { p } ) < time ){
getMessageTime { p } = gettime ( ) ;
return !false ;
}
}
getMessageTime { p } = gettime ( ) ;
return !true ;
}
Usagem:
pawn Код:
if(IsPlayerFlooding(playerid, 3)){ // 3 segundos
return SendClientMessage(playerid, -1,"Vocк estб frodano(3s)"),0;
}