[Ajuda] Jetpack .
#1

Eai povo, eu tenho o cmd /jetpack quando digita voce ganha um so para admins mas ai quando eu faзo aparece no Anti Cheat ai eu queria quando um administrador fizesse nao aparecesse no anti cheat e nem tomase kick o cmd abaixo:
pawn Код:
if(strcmp(cmd, "/jetpack", true) == 0)
    {
           if(PlayerInfo[playerid][pAdmin] >= 5)
        {
            SendClientMessage(playerid, GREY," Vocк pegou um Jet Pack");
            SetPlayerSpecialAction(playerid,2);
        }
        if(PlayerInfo[playerid][pAdmin] >= 5)
        {
            SendClientMessage(playerid, GREY," Vocк nгo й um Adminstrador!");
        }
        return true;
    }
Reply
#2

o Do knight fico melhor pois eu acho que quando fica assim tudo junto fica feio
Reply
#3

Й sу a identaзгo o cуdigo funciona da mesma forma
Reply
#4

Quote:
Originally Posted by Jorge_Hard
Посмотреть сообщение
o Do knight fico melhor pois eu acho que quando fica assim tudo junto fica feio
Eu sempre achei a forma de identaзгo do Knight estranha oO.
Meio tenso separar o conteъdo dentro dos colchetes, mas se for notar a maioria das pessoas que programam C++ fazem da mesma forma...
Reply
#5

Quando pus no anti cheat me deu esse erro :
pawn Код:
gamemodes\GMZ.pwn(4803) : error 017: undefined symbol "playerid"

Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Linha:
pawn Код:
if( PlayerInfo [ playerid ][ pAdmin ] >= 1 ) return false;
Reply
#6

Em que public estб usando isso? se a sua public nгo tiver o parametro playerid й este o motivo do erro.
Reply
#7

Ta nessa public olha ai ;x
pawn Код:
public CheckWeaponHack()
{
    new string[256];
    new giveplayer[MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
         if(antixiter == 1)
         {
                return 1;
         }
         if(PlayerInfo[i][pMember] == 21 && WantedPoints[i] >= 1) //BOPEsu
         {
              WantedPoints[i] = 0;
              SetPlayerWantedLevel(i, 0);
              return 1;
         }
         if(PlayerInfo[i][pMember] == 14 && WantedPoints[i] >= 1) //BOPEsu
         {
              WantedPoints[i] = 0;
              SetPlayerWantedLevel(i, 0);
              return 1;
         }
         if(spawnado[i] > 0)
         {
// JetPack
if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
                {
                if( PlayerInfo [ playerid ][ pAdmin ] >= 1 ) return false;
                GetPlayerName(i, giveplayer, sizeof(giveplayer));
                format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um JetPack use /espiar nele para ve-lo.", giveplayer,i);
                ABroadCast(COLOR_LIGHTRED,string,1);
                SendClientMessage(i, RED, "А Fйladaputa fazendo armas ai nй noob!");
                ResetPlayerWeapons(i);
                }
Reply
#8

pawn Код:
public CheckWeaponHack()
{
    new string[256];
    new giveplayer[MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
             if(antixiter == 1)
             {
                    return 1;
             }
             if(PlayerInfo[i][pMember] == 21 && WantedPoints[i] >= 1) //BOPEsu
             {
                  WantedPoints[i] = 0;
                  SetPlayerWantedLevel(i, 0);
                  return 1;
             }
             if(PlayerInfo[i][pMember] == 14 && WantedPoints[i] >= 1) //BOPEsu
             {
                  WantedPoints[i] = 0;
                  SetPlayerWantedLevel(i, 0);
                  return 1;
             }
             if(spawnado[i] > 0)
             {
                // JetPack
                if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
                {
                    if( PlayerInfo [ i ][ pAdmin ] >= 1 ) return false;
                    GetPlayerName(i, giveplayer, sizeof(giveplayer));
                    format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um JetPack use /espiar nele para ve-lo.", giveplayer,i);
                    ABroadCast(COLOR_LIGHTRED,string,1);
                    SendClientMessage(i, RED, "А Fйladaputa fazendo armas ai nй noob!");
                    ResetPlayerWeapons(i);
                }
            }
        }
    }
    return 1;
}
Espero ter ajudado.
Reply
#9

Agora deu valeu ai .
Reply
#10

Quote:
Originally Posted by akZ
Посмотреть сообщение
Agora deu valeu ai .
mi dб stelinha
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)