Jump to content

Rafaly

Membru
  • Posts

    17
  • Joined

  • Last visited

Posts posted by Rafaly

  1. Salutare! As dorii sa aflu si eu cum as putea sa creez un Tag permanent pentru admini sau / si vipi.(Fondator NUME: Salut,Owner: NUME : Salut)si cum pot adauga la comanda admins rankul fiecarui nivel de admin in parte!

    Va las aici comanda sa va fie mai usor.Multumesc anticipat !

    YCMD:admins(playerid, params[], help) {
        new string[128];
        format(string, sizeof(string), "---------------- Admini conectati ----------------");
        SCM(playerid, COLOR_SERVER, string);
        if(PlayerInfo[playerid][pAdmin] < 1) {
            foreach(PlayerAdmins, i) {
                if(PlayerInfo[pScripter] > 0) format(string, sizeof(string), "(%d) %s - %s", i, PlayerInfo[pUsername], PlayerInfo[pAdmin] < 8 ? ("Scripter") : ("Fondator"));
                format(string, sizeof(string), "(%d) %s - admin level %d", i, PlayerInfo[pUsername], PlayerInfo[pAdmin]);
                SCM(playerid, -1, string);
            }
        }
        else {
            foreach(PlayerAdmins, i) {
                if(GetPVarInt(i, "Cover") == 1) format(string, sizeof(string), "(%d) %s - admin level %d [afk: %d] [cover: %s]", i, PlayerInfo[pUsername], PlayerInfo[pAdmin], AFKSeconds, GetName(i));
                else if(Spectate != 255) format(string, sizeof(string), "(%d) %s - admin level %d [afk: %d] [spec: %s]", i, PlayerInfo[pUsername], PlayerInfo[pAdmin], AFKSeconds, GetName(Spectate));
                else format(string, sizeof(string), "(%d) %s - admin level %d [afk: %d]", i, PlayerInfo[pUsername], PlayerInfo[pAdmin], AFKSeconds);
                SCM(playerid, -1, string);
            }        
        }
        SCM(playerid, COLOR_SERVER, "--------------------------------------------------------");
        SCM(playerid, COLOR_WHITE, "Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");    
        SCM(playerid, COLOR_SERVER, "--------------------------------------------------------");
        return true;
    }

     

  2. Ms mult!Ma poti ajuta cu inca o chestie?Cum ai mai explicat la un topic precedent,la comanda /admins as dorii ca fiecare rank sa aiba un alt nume iar ca in chat sa scrie in fata numelui de ex(Fondator nume: salut).Daca este nevoie ,voi face un topic nou.

  3. Se pare ca a uitat de postare :)

     

    YCMD:order(playerid, params[], help) {
        if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) {
            new result[30];
            if(!PlayerToPoint(100, playerid, -2158.6482,642.3111,1052.3750)) return SCM(playerid, COLOR_GREY, "Nu esti in HQ!");
            if(PlayerHit[playerid] == -1) return SCM(playerid, COLOR_LGREEN, "Eroare: Poti lua arme doar atunci cand ai un contract!");
            if(sscanf(params, "s[30]", result)) {
                SCM(playerid, COLOR_GREY, "Syntax: {FFFFFF}/order <id>");
                SCM(playerid, COLOR_WHITE, "1. Knife (10 $) | 2. SD-Pistol (100 $) | 3. Sniper (200 $)");
                return true;
            }
            if(PlayerInfo[playerid][pGunLic] == 0) return SCM(playerid,-1,"Nu ai licenta de arme!");
            if(strcmp(result,"1",true) == 0) {
                if(PlayerMoney(playerid, 10)) return true;
                ServerWeapon(playerid, 4, 200);
                SCM(playerid, COLOR_MONEY, "Ti-ai cumparat un cutit la pretul de 10$.");
                GivePlayerCash(playerid, 0, 10);
                return true;
            }
            else if(strcmp(result,"2",true) == 0) {
                if(PlayerMoney(playerid, 100)) return true;
                ServerWeapon(playerid, 23, 200);
                SCM(playerid, COLOR_MONEY, "Ti-ai cumparat un SD-Pistol la pretul de 100$.");
                GivePlayerCash(playerid, 0, 100);
                return true;
            }
            else if(strcmp(result,"3",true) == 0) {
                if(PlayerMoney(playerid, 200)) return true;
                ServerWeapon(playerid, 34, 200);
                SCM(playerid, COLOR_MONEY, "Ti-ai cumparat un Sniper la pretul de 200$.");
                GivePlayerCash(playerid, 0, 200);
                return true;
            }
            else return SCM(playerid, COLOR_GREY, "Invalid id!");
        }    
        if(!IsMafie(playerid)) return SCM(playerid, COLOR_GREY, "Nu esti membrul unei mafii.");
        if(PlayerInfo[playerid][pGunLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai licenta de arme.");
        if(GetPlayerInterior(playerid) == 0) return SCM(playerid, COLOR_WHITE,"Nu esti in HQ.");
        if(!IsAtOrderPlace(playerid)) return true;
        new x = PlayerInfo[playerid][pMember]-1, var[3];

        if(SafeInfo[x][sMaterials] < ValueMafie[0][1] && SafeInfo[x][sMoney] < ValueMafie[0][0])
            return SCM(playerid, COLOR_GREY, "Nu ai materiale sau bani de ajuns.");

        for(new i = 0; i < 5; i++) {
            if(SafeInfo[x][sMaterials] < ValueMafie[1] && SafeInfo[x][sMoney] < ValueMafie[0] || !PlayerInfo[playerid][pGuns])
                continue;

            SafeInfo[x][sMaterials] -= ValueMafie[1];
            SafeInfo[x][sMoney] -= ValueMafie[0];
            ServerWeapon(playerid, GunMafieID[0], 60);
            var[0] ++;
            var[1] += ValueMafie[1];
            var[2] += ValueMafie[0];
        }
        SaveSeif(x);
        format(gString, 100, "(/order) {FFFFFF}Ai primit %d arme si ai dat %s materiale si $%s.", var[0], FormatNumber(var[1]), FormatNumber(var[2]));
        SCM(playerid, COLOR_LGREEN, gString);        
        return true;
    }

    function IsMafie(playerid) return PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 ? (true) : (false);

    Cam asta e,e din GM lui HPQ123.

  4.         case DIALOG_CLANVEHICLES: {
                if(!response) return true;
                new title[40];
                format(title, sizeof(title), "Clan: $%s", FormatNumber(ClanInfo[PlayerInfo[playerid][pClan]][ClanBank]));
                format(string, sizeof(string), "Infernus - comming\nSavana - comming");
                ShowPlayerDialog(playerid, DIALOG_CLANVEHICLES+1, DIALOG_STYLE_LIST, title, string, "Select", "Cancel");
            }  

     case DIALOG_CLANVEHICLES+1: {
                if(!response) return true;
                switch(listitem) {
                    case 0: SCM(playerid, COLOR_RED, "Comming");
                    case 1: SCM(playerid, COLOR_RED, "Comming");
                }  

     

    Ma poate ajuta cineva sa adaug masinile la clanvehicles?

  5. [14:20:00] [debug] Server crashed while executing agb.amx [14:20:00] [debug] AMX backtrace: [14:20:00] [debug] #0 00000054 in public L_AFK_OnGM (... <281477120 arguments>) at <unknown file>:0 [14:20:00] [debug] #1 native CallLocalFunction () from samp03svr [14:20:00] [debug] #2 0001bdc0 in public SSCANF_OnGameModeInit () at C:\Users\Darius\Desktop\BURNED BIG EDIT BY ANDREIGB\pawno\include\AutoAFK.inc:47 [14:20:00] [debug] #3 000154ac in public Itter_OnGameModeInit () at C:\Users\Darius\Desktop\BURNED BIG EDIT BY ANDREIGB\pawno\include\sscanf2.inc:205 [14:20:00] [debug] #4 native CallLocalFunction () from samp03svr [14:20:00] [debug] #5 000141e4 in public ScriptInit_OnGameModeInit () at C:\Users\Darius\Desktop\BURNED BIG EDIT BY ANDREIGB\pawno\include\YSI\y_iterate.inc:791 [14:20:00] [debug] #6 00012e04 in public PZone_OnGameModeInit () at C:\Users\Darius\Desktop\BURNED BIG EDIT BY ANDREIGB\pawno\include\YSI\internal..\y_scriptinit.inc:171 [14:20:00] [debug] #7 native CallLocalFunction () from samp03svr [14:20:00] [debug] #8 00006de4 in public OnGameModeInit () at C:\Users\Darius\Desktop\BURNED BIG EDIT BY ANDREIGB\pawno\include\playerzone.inc:429
     
     
     
    Vre-o idee>?
  6. Salut,am o problema destul de complicata si nu prea stiu sa o rezolv.Am mai intrebat cateva pers dar nimeni nu pare sa stie ce este de facut.

    [14:20:00] [debug] Server crashed while executing agb.amx

    [14:20:00] [debug] AMX backtrace:

    [14:20:00] [debug] #0 00000054 in public L_AFK_OnGM (... <281477120 arguments>) at <unknown file>:0

     

    [14:20:00] [debug] #1 native CallLocalFunction () from samp03svr

    [14:20:00] [debug] #2 0001bdc0 in public SSCANF_OnGameModeInit () at C:\Users\Darius\Desktop\BURNED BIG EDIT BY ANDREIGB\pawno\include\AutoAFK.inc:47

    [14:20:00] [debug] #3 000154ac in public Itter_OnGameModeInit () at C:\Users\Darius\Desktop\BURNED BIG EDIT BY ANDREIGB\pawno\include\sscanf2.inc:205

    [14:20:00] [debug] #4 native CallLocalFunction () from samp03svr

    [14:20:00] [debug] #5 000141e4 in public ScriptInit_OnGameModeInit () at C:\Users\Darius\Desktop\BURNED BIG EDIT BY ANDREIGB\pawno\include\YSI\y_iterate.inc:791

    [14:20:00] [debug] #6 00012e04 in public PZone_OnGameModeInit () at C:\Users\Darius\Desktop\BURNED BIG EDIT BY ANDREIGB\pawno\include\YSI\internal..\y_scriptinit.inc:171

    [14:20:00] [debug] #7 native CallLocalFunction () from samp03svr

    [14:20:00] [debug] #8 00006de4 in public OnGameModeInit () at C:\Users\Darius\Desktop\BURNED BIG EDIT BY ANDREIGB\pawno\include\playerzone.inc:429

    Orice idee este bine primita.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.