[Ajuda] Apenas sуcio poder dar /entrarorg
#2

Posta o comando aн... Tu tem que colocar a variбvel de sуcio pra apenas o sуcio usar o comando, por exemplo, esse comando do meu gm:
pawn Код:
if(strcmp(cmd, "/kitsocio", true) == 0)
    {
        new location = PlayerInfo[playerid][pLocal];
        if(location == 99 || location == 100 || location == 102 || PlayerToPoint(2.0,playerid,296.3083,-38.1549,1001.5156) || PlayerToPoint(2.0,playerid,313.8642,-133.8308,999.6016))
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            if(PlayerInfo[playerid][pSocio] == 1)  // aqui estб a variбvel que define se o player й sуcio ou nгo
            {
                format(string, sizeof(string), "* %s Pegou Seu Kit VIP.", PlayerName(playerid));
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                ResetPlayerWeaponsBHV(playerid);
                GivePlayerWeaponBHV(playerid, 46, 1);
                GivePlayerWeaponBHV(playerid, 24, 999);
                GivePlayerWeaponBHV(playerid, 31, 999);
                GivePlayerWeaponBHV(playerid, 29, 999);
                GivePlayerWeaponBHV(playerid, 25, 999);
                GivePlayerWeaponBHV(playerid, 34, 999);
                GivePlayerWeaponBHV(playerid, 4, 1);
                GivePlayerWeaponBHV(playerid, 1, 1);
                SetPlayerArmour(playerid, 100);
                SetPlayerHealth(playerid, 100);
                SendClientMessage(playerid,COLOR_GREEN,"Vocк pegou o seu Kit Socio");
                return true;
            }
            else
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo й Socio");
                return true;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo estб em uma loja de armas.");
        }
        return true;
    }
Outro exemplo:
pawn Код:
if(strcmp(cmd, "/entrarorg", true) == 0)
    {
        if(PlayerInfo[playerid][pSocio] < 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й Socio!");
            return 1;
        }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)