03.08.2013, 19:04
Tente, sу colocar as paradas certo dentro
Nгo seria melhor tirar o ' ! ' ? й que assim sу funciona se o jogador nгo estiver nessas coordenadas.
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))
{
//...
}
}
}
pawn Код:
!IsPlayerInPlace(x,1905.908,-1810.773, 2227.908,-1530.773))