static szPlayerChatMsg[MAX_PLAYERS][128]; IL pui la public OnPlayerText(playerid, text[]) [pawn] if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid)) { SendClientMessage(playerid, 0xFF0000FF, "*{6EF83C} You can only send a message once every three {FFFFFF}seconds."); return 0; } if(!IsPlayerAdmin(playerid)) { if(strlen(text) == strlen(szPlayerChatMsg[playerid]) && !strcmp(szPlayerChatMsg[playerid], text, false)) { SendClientMessage(playerid, 0xFF0000FF, "* {FFFFFF}Please do not repeat {F81414}yourself."); format(szPlayerChatMsg[playerid], 128, "%s", text); return 0; } } format(szPlayerChatMsg[playerid], 128, "%s", text); iPlayerChatTime[playerid] = GetTickCount();[/pawn] SI pe esta jos de la public OnPlayerText(playerid, text[])[pawn]} stock IsPlayerFlooding(playerid) { if(GetTickCount() - iPlayerChatTime[playerid] < 2200) return 1; return 0; }[/pawn] public OnPlayerDisconnect(playerid, reason) iPlayerChatTime[playerid] = 0; szPlayerChatMsg[playerid] = "";