pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
new giveplayer[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
new string[256];
new giveplayerid;
cmd = strtok(cmdtext, idx);
if (strcmp("/dominar", cmdtext, true, 10) == 0)
{
if(IsPlayerInPlace(playerid,-316.7552,1771.5266,43.6406,87,4360))
{
if(gTeam == TEAM_2)
{
GangZoneFlashForAll(COLOR_GREEN,COLOR_RED);
SetTimer("DominarPoliciaMarginais",60000,false);
}
else if(gTeam == TEAM_1)
{
GangZoneFlashForAll(COLOR_RED,COLOR_GREEN);
SetTimer("DominarMarginaisMarginais",60000,false);
}
}
else if(IsPlayerInPlace(playerid,424.6895,2502.3071,16.4844,91.8523))
{
if(gTeam == TEAM_1)
{
GangZoneFlashForAll(COLOR_RED,COLOR_GREEN);
SetTimer("DominarMarginaisPolicia",60000,false);
}
else if(gTeam == TEAM_2)
{
GangZoneFlashForAll(COLOR_RED,COLOR_GREEN);
SetTimer("DominarPoliciaPolicia",60000,false);
}
else if(IsPlayerInPlace(playerid,283.2187,1934.6101,17.6406,273.5505))
{
if(gTeam == TEAM_1)
{
GangZoneFlashForAll(COLOR_RED,COLOR_OURO);
SetTimer("DominarMarginaisExercito",60000,false);
}
else if(gTeam == TEAM_3)
{
GangZoneFlashForAll(COLOR_OURO,COLOR_RED);
SetTimer("DominarExercitoExercito",60000,false);
}
else if(IsPlayerInPlace(playerid,-933.6330,2033.8872,60.9205,220.8257))
{
if(gTeam == TEAM_1)
{
GangZoneFlashForAll(COLOR_RED,COLOR_BLUE);
SetTimer("DominarMarginaisMafiosos",60000,false);
}
else if(gTeam == TEAM_4)
{
GangZoneFlashForAll(COLOR_BLUE,COLOR_RED);
SetTimer("DominarMafiososMafiosos",60000,false);
}
else if(IsPlayerInPlace(playerid,283.2187,1934.6101,17.6406,273.5505))
{
if(gTeam == TEAM_2)
{
GangZoneFlashForAll(COLOR_GREEN,COLOR_OURO);
SetTimer("DominarPoliciaExercito",60000,false);
}
else if(gTeam == TEAM_3)
{
GangZoneFlashForAll(COLOR_OURO,COLOR_GREEN);
SetTimer("DominarExercitoExercito",60000,false);
}
else if(IsPlayerInPlace(playerid,-933.6330,2033.8872,60.9205,220.8257))
{
if(gTeam == TEAM_2)
{
GangZoneFlashForAll(COLOR_GREEN,COLOR_BLUE);
SetTimer("DominarPoliciaMafiosos",60000,false);
}
else if(gTeam == TEAM_4)
{
GangZoneFlashForAll(COLOR_BLUE,COLOR_GREEN);
SetTimer("DominarMafiososMafiosos",60000,false);
}
else if(IsPlayerInPlace(playerid,-316.7552,1771.5266,43.6406,87,4360))
{
if(gTeam == TEAM_3)
{
GangZoneFlashForAll(COLOR_OURO,COLOR_RED);
SetTimer("DominarExercitoMarginais",60000,false);
}
else if(gTeam == TEAM_1)
{
GangZoneFlashForAll(COLOR_RED,COLOR_OURO);
SetTimer("DominarMarginaisMarginais",60000,false);
}
else if(IsPlayerInPlace(playerid,424.6895,2502.3071,16.4844,91.8523))
{
if(gTeam == TEAM_3)
{
GangZoneFlashForAll(COLOR_OURO,COLOR_GREEN);
SetTimer("DominarExercitoPolicia",60000,false);
}
else if(gTeam == TEAM_2)
{
GangZoneFlashForAll(COLOR_GREEN,COLOR_OURO);
SetTimer("DominarPoliciaPolicia",60000,false);
}
else if(IsPlayerInPlace(playerid,-933.6330,2033.8872,60.9205,220.8257))
{
if(gTeam == TEAM_3)
{
GangZoneFlashForAll(COLOR_OURO,COLOR_BLUE);
SetTimer("DominarExercitoMafiosos",60000,false);
}
else if(gTeam == TEAM_4)
{
GangZoneFlashForAll(COLOR_BLUE,COLOR_OURO);
SetTimer("DominarMafiososMafiosos",60000,false);
}
else if(IsPlayerInPlace(playerid,-316.7552,1771.5266,43.6406,87,4360))
{
if(gTeam == TEAM_4)
{
GangZoneFlashForAll(COLOR_BLUE,COLOR_RED);
SetTimer("DominarMafiososMarginais",60000,false);
}
else if(gTeam == TEAM_1)
{
GangZoneFlashForAll(COLOR_RED,COLOR_BLUE);
SetTimer("DominarMarginaisMarginais",60000,false);
}
else if(IsPlayerInPlace(playerid,424.6895,2502.3071,16.4844,91.8523))
{
if(gTeam == TEAM_4)
{
GangZoneFlashForAll(COLOR_BLUE,COLOR_GREEN);
SetTimer("DominarMafiososPolicia",60000,false);
}
else if(gTeam == TEAM_2)
{
GangZoneFlashForAll(COLOR_GREEN,COLOR_BLUE);
SetTimer("DominarPoliciaPolicia",60000,false);
}
else if(IsPlayerInPlace(playerid,283.2187,1934.6101,17.6406,273.5505))
{
if(gTeam == TEAM_4)
{
GangZoneFlashForAll(COLOR_BLUE,COLOR_OURO);
SetTimer("DominarMafiososExercito",60000,false);
}
else if(gTeam == TEAM_3)
{
GangZoneFlashForAll(COLOR_OURO,COLOR_BLUE);
SetTimer("DominarExercitoExercito",60000,false);
}
}
return 1;
}