13.09.2013, 10:04
Hey guys, I would like to tell you about my problem. I have a problem with the police robbery alert.
In my server, I have 5 law enforcement agency. DRT, COP, SWAT, FBI, ARMY.
I had this problem after I added DRT team!
This is my SendRadioMessageToCops stock.
Is there any problems here, I don't think so right? All law enforcement agencies doesn't get robbery alert! Even COP team
But when I do..
stock SendRadioMessageToCops(const str[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerSpawned(i) && gTeam[i] == COP) SendClientMessage(i, LIGHT_BLUE, str);
}
return true;
}
then the police Robbery alert works for COP team! But the other law enforcement agencies not.
Please help.
In my server, I have 5 law enforcement agency. DRT, COP, SWAT, FBI, ARMY.
I had this problem after I added DRT team!
This is my SendRadioMessageToCops stock.
pawn Код:
stock SendRadioMessageToCops(const str[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerSpawned(i) && gTeam[i] == COP && gTeam[i] == DRT && gTeam[i] == SWAT && gTeam[i] == FBI && gTeam[i] == ARMY) SendClientMessage(i, LIGHT_BLUE, str);
}
return true;
}
But when I do..
stock SendRadioMessageToCops(const str[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerSpawned(i) && gTeam[i] == COP) SendClientMessage(i, LIGHT_BLUE, str);
}
return true;
}
then the police Robbery alert works for COP team! But the other law enforcement agencies not.
Please help.