public IVagosxGroove(playerid)
{
new string[128];
new playername[MAX_PLAYER_NAME];
if(provocoidlewood[playerid] == 1)
{
if(IsPlayerInPlace(playerid,2239.024,-1721.339, 2512.828, -1638.437))
{
if(PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10)
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "[TERRITУRIO]: Os Vagos conseguiram tomar o controle de Idlewood. ");
SendClientMessageToAll(COLOR_YELLOW, string);
GangZoneStopFlashForAll(Idlewood);
GangZoneShowForAll(Idlewood, COR_VAGOS);
Dominando[playerid] = 0;
provocoidlewood[playerid] = 0;
guerraemidlewood = 0;
donoidlewood = 4;
KillTimer(tempoidlewood);
return 1;
}
else if(PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "[TERRITУRIO]: Os Groovers conseguiram manter o controle de Idlewood. ");
SendClientMessageToAll(COLOR_YELLOW, string);
GangZoneStopFlashForAll(Idlewood);
GangZoneShowForAll(Idlewood, COR_GROOVE);
Dominando[playerid] = 0;
provocoidlewood[playerid] = 0;
guerraemidlewood = 0;
donoidlewood = 1;
KillTimer(tempoidlewood);
return 1;
}
}
}
return 1;
}
Use um loop para verificar se ele esta dentro desta gz caso esteje mande a mesnsagem e jogue uma nova timer!
|
public IVagosxGroove(playerid)
{
new string[128];
new playername[MAX_PLAYER_NAME];
if(provocoidlewood[playerid] == 1)
{
for_loop:
if(PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10 && PlayerInfo[playerid][pLider] == 13 || PlayerInfo[playerid][pMembro] == 13 && IsPlayerInPlace(playerid,1905.908,-1810.773, 2227.908,-1530.773))
{
format(string, sizeof(string), "[TERRITУRIO]: O combate em Idlewood foi prolongado. ");
SendVagosMessage(COLOR_WHITE, string, 1);
format(string, sizeof(string), "[TERRITУRIO]: O combate em Idlewood foi prolongado. ");
SendGrooveMessage(COLOR_WHITE, string, 1);
tempoidlewood = SetTimerEx("IVagosxGroove", 120000, 0, "i", playerid);
goto for_loop;
}
if(PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10 && IsPlayerInPlace(playerid,1905.908,-1810.773, 2227.908,-1530.773))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "[TERRITУRIO]: Vagos conseguiram tomar o controle de Idlewood. ");
SendClientMessageToAll(COLOR_YELLOW, string);
GangZoneStopFlashForAll(Idlewood);
GangZoneShowForAll(Idlewood, COR_VAGOS);
Dominando[playerid] = 0;
provocoidlewood[playerid] = 0;
guerraemidlewood = 0;
donoidlewood = 4;
KillTimer(tempoidlewood);
return 1;
}
else if(PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13 && IsPlayerInPlace(playerid,1905.908,-1810.773, 2227.908,-1530.773))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "[TERRITУRIO]: Grove Street consegue manter o controle de Idlewood. ");
SendClientMessageToAll(COLOR_YELLOW, string);
GangZoneStopFlashForAll(Idlewood);
GangZoneShowForAll(Idlewood, COR_GROOVE);
Dominando[playerid] = 0;
provocoidlewood[playerid] = 0;
guerraemidlewood = 0;
donoidlewood = 1;
KillTimer(tempoidlewood);
return 1;
}
}
return 1;
}