Jump to content

Question

Posted

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

3 answers to this question

Recommended Posts

  • 0
Posted
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.

  • 0
Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.