public IVagosxBallas(playerid)
{
new string[128];
new playername[MAX_PLAYER_NAME];
if(provocoidlewood[playerid] == 1)
{
/*for(new player; player<MAX_PLAYERS; player++)
{*/
if(PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10 && PlayerInfo[playerid][pLider] == 11 || PlayerInfo[playerid][pMembro] == 11 && 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. ");
SendBallasMessage(COLOR_WHITE, string, 1);
tempoidlewood = SetTimerEx("IVagosxBallas", 120000, 0, "i", playerid);
return 1;
}
else if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11 && !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] == 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]: Ballas consegue manter o controle de Idlewood. ");
SendClientMessageToAll(COLOR_YELLOW, string);
GangZoneStopFlashForAll(Idlewood);
GangZoneShowForAll(Idlewood, COR_BALLAS);
Dominando[playerid] = 0;
provocoidlewood[playerid] = 0;
guerraemidlewood = 0;
donoidlewood = 2;
KillTimer(tempoidlewood);
return 1;
}
else if(PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10 && PlayerInfo[playerid][pLider] == 11 || PlayerInfo[playerid][pMembro] == 11 && !IsPlayerInPlace(playerid,1905.908,-1810.773, 2227.908,-1530.773))
{
format(string, sizeof(string), "[TERRITУRIO]: O territуrio em Idlewood estб livre de Gangsters!");
SendClientMessageToAll(COLOR_YELLOW, string);
GangZoneStopFlashForAll(Idlewood);
GangZoneShowForAll(Idlewood, Cinza);
Dominando[playerid] = 0;
provocoidlewood[playerid] = 0;
guerraemidlewood = 0;
donoidlewood = 0;
KillTimer(tempoidlewood);
return 1;
}
}
return 1;
}
for(new x = 0; x <= GetMaxPlayers(); x++)
{
if(PlayerInfo[x][pMembro] == 10 && PlayerInfo[x][pMembro] == 11)
{
//...
}
}
pawn Код:
|
for(new x = 0; x <= GetMaxPlayers(); x++)
{
if(IsPlayerConnected(x))
{
if(PlayerInfo[x][pMembro] == 10 || PlayerInfo[x][pLider] == 10 && PlayerInfo[x][pLider] == 11 || PlayerInfo[x][pMembro] == 11 && IsPlayerInPlace(x,1905.908,-1810.773, 2227.908,-1530.773))
{
//...
}
else if(PlayerInfo[x][pMembro] == 11 || PlayerInfo[x][pLider] == 11 && !IsPlayerInPlace(x,1905.908,-1810.773, 2227.908,-1530.773))
{
//...
}
else if(PlayerInfo[x][pMembro] == 10 || PlayerInfo[x][pLider] == 10 && !IsPlayerInPlace(x,1905.908,-1810.773, 2227.908,-1530.773))
{
//...
}
else if(PlayerInfo[x][pMembro] == 10 || PlayerInfo[x][pLider] == 10 && PlayerInfo[x][pLider] == 11 || PlayerInfo[x][pMembro] == 11 && IsPlayerInPlace(x,1905.908,-1810.773, 2227.908,-1530.773))
{
//...
}
}
}
!IsPlayerInPlace(x,1905.908,-1810.773, 2227.908,-1530.773))
if(PlayerInfo[x][pMembro] == 10 || PlayerInfo[x][pLider] == 10 && PlayerInfo[x][pLider] == 11 || PlayerInfo[x][pMembro] == 11 && IsPlayerInPlace(x,1905.908,-1810.773, 2227.908,-1530.773))
{
//...
}
for(new player; player<MAX_PLAYERS; player++)
{
if(PlayerInfo[player][pMembro] == 10 && PlayerInfo[player][pMembro] == 11 && IsPlayerInPlace(player,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. ");
SendBallasMessage(COLOR_WHITE, string, 1);
tempoidlewood = SetTimerEx("IVagosxBallas", 120000, 0, "i", playerid);
return 1;
}
}
pawn Код:
|
for(new player; player<MAX_PLAYERS; player++)
{
if(PlayerInfo[player][pMembro] == 11 || PlayerInfo[player][pLider] == 11 && PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10 && IsPlayerInPlace(player,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. ");
SendBallasMessage(COLOR_WHITE, string, 1);
tempoidlewood = SetTimerEx("IVagosxBallas", 120000, 0, "i", playerid);
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 11|| PlayerInfo[playerid][pLider] == 11 && !IsPlayerInPlace(player,1905.908,-1810.773, 2227.908,-1530.773))
{
//
}
else if(PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10 && !IsPlayerInPlace(player,1905.908,-1810.773, 2227.908,-1530.773))
{
//
}
else if(PlayerInfo[player][pMembro] == 11 || PlayerInfo[player][pLider] == 11 && PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10 && !IsPlayerInPlace(player,1905.908,-1810.773, 2227.908,-1530.773))
{
//
}
Poisй Don, eu tinha feito isso e acontece que ele pulou esta parte e fez oque havia em baixo :S
Veja se esta certo como eu tinha feito: pawn Код:
|
PlayerInfo[player][pMembro] == 10 && PlayerInfo[player][pMembro] == 11 && IsPlayerInPlace(player,1905.908,-1810.773, 2227.908,-1530.773)