27.09.2010, 19:14 
	
	
	
		So i'm trying to make my own turf script, and if i fail to stay in point for 30 secs it should send a message "Noob 
 Failed" And it does but it spams me this text 15 times!
	
	
	
	
 Failed" And it does but it spams me this text 15 times!Код:
/////Above this i have a function that calls this timer if player entered defined point////////
forward SAMSITEcheck(playerid);
public SAMSITEcheck(playerid)
{
	new timer1;
	SAMSITECheckDelay += 2;
	timer1 = SetTimerEx("SAMSITEcheck", 2000, false, "d", playerid);
	if(SAMSITECheckDelay == 30)
	{
	    GangZoneStopFlashForAll(SAMSITE);
	    if(gTeam[playerid] == EA)
	    {
	        SAMSITEO = 1;
	        SAMSITECheckDelay = 0;
		}
  		if(gTeam[playerid] == AE)
	    {
	        SAMSITEO = 2;
	        SAMSITECheckDelay = 0;
		}
		if(gTeam[playerid] == USA)
	    {
	        SAMSITEO = 3;
	        SAMSITECheckDelay = 0;
		}
		if(gTeam[playerid] == SA)
	    {
	        SAMSITEO = 4;
	        SAMSITECheckDelay = 0;
		}
	}
	if(!IsPlayerInRangeOfPoint(playerid, 3.0, -782.4177, 2417.32, 15))
	{
 	    KillTimer(timer1);
	    SendClientMessage(playerid, COLOR_RED, "Noob :D Failed");///I get this MSG spamed.
	}
}


