problems..
#8

yea string v shadows another level and same arguments and wtf how would that send a chat bubble D:
Код:
public OnPlayerText(playerid, text[])
{
    if(CountOccurrence(text,'.')>2 && CountOccurrence(text,':')>1) {
 	 	if(!IsPlayerAdmin(playerid)) {
 	  SendClientMessage(playerid,0xFF0000AA,"Error: We do not allow the posting of IP addresses here");
 	  Kick(playerid);
 	  }
	 	return 1;
	 	}
  	if(strlen(text) > 128) return 0;

   	new to_others[MAX_CHATBUBBLE_LENGTH+1];
    format(to_others,MAX_CHATBUBBLE_LENGTH,"%s(%d) Says: %s",GetPlayerName(playerid), playerid, text);
    SetPlayerChatBubble(playerid,to_others,RED,35.0,10000);
   
		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),"*SERVER KICK: %s(%d) Has Been Kicked From The Server (Reason): Excess Flood (Text Spam)", tname,playerid);
		SendClientMessageToAll(PINK,string);
  		CallRemoteFunction("KickIncrease","d",playerid);
		Kick(playerid);
		}
		else if(GetPVarInt(playerid,"textspam") == 4) {
		SendClientMessage(playerid,red,"Stop Spamming Or You Will Be Kicked.(You Much Now Wait 5 Seconds To Type Again)");
		return 0;
		}
		return 1;
}
Reply


Messages In This Thread
problems.. - by Kar - 23.06.2010, 05:27
Re: problems.. - by (SF)Noobanatior - 23.06.2010, 05:38
Re: problems.. - by Kar - 23.06.2010, 05:41
Re: problems.. - by NiiRV4N4 - 23.06.2010, 05:58
Re: problems.. - by Kar - 23.06.2010, 05:59
Re: problems.. - by NiiRV4N4 - 23.06.2010, 06:01
Re: problems.. - by (SF)Noobanatior - 23.06.2010, 06:03
Re: problems.. - by Kar - 23.06.2010, 06:04
Re: problems.. - by NiiRV4N4 - 23.06.2010, 06:04
Re: problems.. - by (SF)Noobanatior - 23.06.2010, 06:07

Forum Jump:


Users browsing this thread: 1 Guest(s)