2 Prolems
#8

ok
this how i maked my include ::
Code:
stock AntiSpam(playerid,color1,string1[],color2,string2[])
{
forward clearspam(playerid);

public OnPlayerText(playerid, text[];])
{
	SetPVarInt(playerid,"Spam",SpamX(playerid,"Spam")+1);
        SetTimerEx("clearspam",3000,false,"d",playerid);
if(GetPVarInt(playerid,"Spam") == 2) {
		new string[128];
		new nameX[MAX_PLAYER_NAME];
		GetPlayerName(playerid,nameX,sizeof(nameX));
		format(string,sizeof(string),string1,nameX,playerid);
		SendClientMessageToAll(color1,string);
                CallRemoteFunction("KickIncrease","d",playerid);
		//Kick(playerid);
	else if(GetPVarInt(playerid,"Spam") == 2) {
		SendClientMessage(playerid,color2,string2);
		return 0;
	}
  return 1;

}

public clearspam(playerid)
{
	SetPVarInt(playerid,"Spam",0);
}
is it good?do you think it will work?
and what :
Code:
CallRemoteFunction("KickIncrease","d",playerid);
does do?

and what UAC means??
Reply


Messages In This Thread
2 Prolems - by Kaperstone - 28.07.2011, 00:20
Re: 2 Prolems - by iPLEOMAX - 28.07.2011, 00:28
Re: 2 Prolems - by Kaperstone - 28.07.2011, 00:35
Re: 2 Prolems - by Kaperstone - 28.07.2011, 01:06
Re: 2 Prolems - by Grim_ - 28.07.2011, 02:34
Re: 2 Prolems - by Kaperstone - 28.07.2011, 12:58
Re: 2 Prolems - by Calgon - 28.07.2011, 19:58
Re: 2 Prolems - by Kaperstone - 28.07.2011, 20:16
Re: 2 Prolems - by ylleron - 28.07.2011, 21:03
Re: 2 Prolems - by Kaperstone - 28.07.2011, 21:09

Forum Jump:


Users browsing this thread: 1 Guest(s)