[AJUDa] Detector de metais
#1

Bom, to com um problema neste codigo... Ele tira a arma, mas nao devolve...


PHP код:
forward DetectorMetais(weaponidammo);
public 
DetectorMetais(weaponidammo)
{
    for(new 
0<= PlayersOnlinex++)
    {
        if(
IsPlayerInRangeOfPoint(x2.0247.8819,63.5701,1003.6406))
        {
            if(
Checado[x])
            {
                
GivePlayerWeapon(xweaponidammo);
                
Checado[x] = false;
            }
            if(
GetPlayerWeapon(x) > 0)
            {
                for(new 
013i++)
                {
                    
GetPlayerWeaponData(xiArmasDetector[x][i], ArmasBallasDetector[x][i]);
                    if(
Checado[x])
                    {
                        if(
IsPlayerInRangeOfPoint(x2.0245.8359,63.4817,1003.6406))
                        {
                            
GivePlayerWeapon(xArmasDetector[x][i], ArmasBallasDetector[x][i]);
                            
SendClientMessage(x0xFFFF00AA"[INFO] Suas armas foram devolvidas !");
                        }
                    }
                    else
                    {
                        
SendClientMessage(x0xFFFF00AA"[INFO] Suas armas foram retiradas pelo detector de metais !");
                        
ResetPlayerWeapons(x);
                        
Checado[x] = true;
                    }
                }
            }
        }
    }
    return 
1;

Eu fiz dois IsPlayerInRangeOfPoint para testar se ele devolve a arma, mas nao ta devolvendo, se alguem poder me ajudar ficarei agradecido!
Reply
#2

Qual gamemode vocк usa?
Reply
#3

advanced
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)