27.06.2012, 15:45
Pra mim isso й um cуdigo ъtil. Mas cada um tem sua opiniгo
pawn Код:
#include <a_samp>
new
gFloodStamp[MAX_PLAYERS],
gFloodCount[MAX_PLAYERS];
public OnPlayerText(playerid, text[])
{
if(gFloodStamp[playerid] > 0)
{
if(gettime() >= gFloodStamp[playerid])
{
gFloodStamp[playerid] = 0;
gFloodCount[playerid] = 0;
}
else
{
gFloodCount[playerid]++;
if(gFloodCount[playerid] == 3)
{
return Kick(playerid), 0;
}
}
}
gFloodStamp[playerid] = gettime() + 3; // 3 segundos pra falar
return 1;
}