Jump to content
  • 0

Problema cu /order


yonutpopa

Question

3 answers to this question

Recommended Posts

  • 0
Acum 12 ore, yonutpopa a spus:

Vreu sa ma ajutati sa repair si eu /order , sunt la hq si cand scriu /order imi spune ca am primit 0 arme si am dat 0 materiale si 0$   (Am materiale + si hq Mafi) ajutati ma cu problema va rog astept si un video plz

Pune aici comanda /order.

 

Acum 12 ore, Marrian12341 a spus:

da-mi linia si eroarea.

L-ai lamurit.. :)))

Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte.

Copii, nu mai veniti cu vorbe de "Am gamemode unic", nu exista asa ceva, la ora actuala totul este pe net.

Aveti grija pe cine ajutati, majoritatea sunt caini.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.