??? anti-spam aint working anymore
#1

Код:
	SetPVarInt(playerid,"textspam",GetPVarInt(playerid,"textspam")+1);
	SetTimerEx("clearspam",5000,false,"d",playerid);
	if(GetPVarInt(playerid,"textspam") == 5) {
		new string[128];
		new tname[MAX_PLAYER_NAME];
		GetPlayerName(playerid,tname,sizeof(tname));
		format(string,sizeof(string),"AdmCmd: %s was kicked. Reason: spamming", tname,playerid);
		SendClientMessageToAll(COLOR_RED,string);
  		CallRemoteFunction("KickIncrease","d",playerid);
		Kick(playerid);
	}
	return 1;
}
It was working perfect.. but then it stopped to work ? why ? Did any sa:mp functions changed ?
Reply


Messages In This Thread
??? anti-spam aint working anymore - by Jimbo01 - 16.06.2011, 11:06
Re: ??? anti-spam aint working anymore - by Simon - 16.06.2011, 13:02
Re: ??? anti-spam aint working anymore - by Jimbo01 - 16.06.2011, 18:45

Forum Jump:


Users browsing this thread: 2 Guest(s)