18.05.2014, 15:58
O que ta acontecendo? Nгo ta entrando no else e nгo ta diminuindo a variavel alqaedaangelpine
Pq? A logica ta toda certa :@
InMAta
Pq? A logica ta toda certa :@
pawn Код:
for (new i = 0; i < MAX_PLAYERS; i++)
{
new org = GetPlayerOrg(i);
if(org == 6) {
if(IsPlayerInMata(i)) {
if(pIngz[i] == 0) {
if(morto[i] >= 1) return 1;
if(Pangelpine[i] == 0) {
alqaedaangelpine += 1;
pIngz[i] = 1;
Pangelpine[i] = 1;
return 1;
}
}
}
else {
if(pIngz[i] == 1) {
if(Pangelpine[i] == 1) {
alqaedaangelpine -= 1;
pIngz[i] = 0;
Pangelpine[i] = 0;
return 1;
}
}
}
}
}
pawn Код:
stock IsPlayerInMata(playerid) // angel pine
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= -2288.864 && y >= -2557.455 && x <= -2008.595 && y <= -2207.118) return 1;
else return 0;
}