Problem with message in area
#1

PHP код:
forward CheckArea();
public 
CheckArea()
{
foreach(
Playeri)
{
if(
IsPlayerConnected(i))
{
if(
GetClanId(Hq1) != -1)
{
GangZoneShowForPlayer(i,GangZoneHq[0],ClanInfo[GetClanId(Hq1)][ClanColorR] == -COLOR_BLACK rgba2hex(ClanInfo[GetClanId(Hq1)][ClanColorR], ClanInfo[GetClanId(Hq1)][ClanColorG], ClanInfo[GetClanId(Hq1)][ClanColorB], 100));
}
new 
count[MAX_PLAYERS],string[100];
if(
isPlayerInArea(i,HqAreas[0]) && count[i] == 0)
{
count[i] = 1;
if(
equal(PlayerInfo[i][Clan], ClanInfo[GetClanId(Hq1)][ClanName]))
{
format(string,sizeof(string),"Welcome to your hq");
SendClientMessage(iCOLOR_YELLOWstring);
}
else
{
SendClientMessage(iCOLOR_YELLOW"."Welcome to ""Hq1"" Hq ");
format(string,sizeof(string),"
!! фмщ мофчгъ дчмап %**", GetName(i));
SendClanMessage(ClanInfo[GetClanId(Hq1)][ClanName],COLOR_PINK, string);
}
if(!isPlayerInArea(i,HqAreas[0]) && count[i] == 1) count[i] = 0;
}
}
}
return true;

Why it's didn't send only one message when i in area?
Reply


Messages In This Thread
Problem with message in area - by NeyMar96 - 26.02.2013, 16:16
Re: Problem with message in area - by NeyMar96 - 26.02.2013, 16:54
Re: Problem with message in area - by NeyMar96 - 27.02.2013, 16:38
Re: Problem with message in area - by NeyMar96 - 01.03.2013, 12:52
Re: Problem with message in area - by Bakr - 01.03.2013, 16:04
Re: Problem with message in area - by Kenway - 01.03.2013, 16:08
Re: Problem with message in area - by NeyMar96 - 01.03.2013, 17:51

Forum Jump:


Users browsing this thread: 3 Guest(s)