Jump to content
  • 0

Error Order-HQ.


H3AtonN

Question

Problema intalnita (descriere):Deci,am schimbat interiorul la toate gangurile..Si nu-mi mai merge comanda /order..care e de arme.. imi zice ca nu-s in hq..

interiorul e asta: 2549.1279,-1294.8311,1060.9844
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:order(playerid, params[])
{
    new id;
    if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Tu nu esti logat si nu poti sa folosesti aceasta comanda!");
    if(!IsAGangMember(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "Nu Faci Parte Din Acest Gang.");
    if(PlayerInfo[playerid][pGunLic] <= 0) return SendClientMessage(playerid, COLOR_ERROR, "Nu Ai Licenta De Arme.");
    if(sscanf(params,"i", id)){
    SendClientMessage(playerid, COLOR_SYN, "Tasteaza:{FFFFFF} /order <1-5>");
     SendClientMessage(playerid, COLOR_GREY, "|1 - ($500) Rank 1+: Desert Eagle");
     SendClientMessage(playerid, COLOR_GREY, "|2 - ($1,000) Rank 2+: Desert Eagle, M4");
    SendClientMessage(playerid, COLOR_GREY, "|3 - ($1,500) Rank 3+: Desert Eagle, M4, Rifle");
    SendClientMessage(playerid, COLOR_GREY, "|4 - ($2,000) Rank 4+: Desert Eagle, M4, Rifle, Tec9");
    SendClientMessage(playerid, COLOR_GREY, "|5 - ($2,500) Rank 5+: Desert Eagle, M4, Rifle, Tec9, Shotgun,");
    return 1; }
    if(IsInHQ(playerid))
    {
        if(id < 1 || id > 5) return 1;
        new money = id * 500;
        if(GetPlayerCash(playerid) < money) return SendClientMessage(playerid, COLOR_ERROR, "Nu ai suficienti bani!");
        if(PlayerInfo[playerid][pRank] < id)
        {
            format(gString, sizeof(gString), "Ai nevoie de rank %d pentru a luat acest order..", id);
            SendClientMessage(playerid, COLOR_ERROR, gString);
            return 1;
        }
        GivePlayerCash(playerid, -money);
        switch(id)
        {
            case 1:
            {
                GivePlayerWeaponEx(playerid, 24, 100);
            }
            case 2:
            {
                GivePlayerWeaponEx(playerid, 24, 50);
                GivePlayerWeaponEx(playerid, 31, 250);
            }
            case 3:
            {
                GivePlayerWeaponEx(playerid, 24, 50);
                GivePlayerWeaponEx(playerid, 31, 250);
                GivePlayerWeaponEx(playerid, 33, 50);
            }
            case 4:
            {
                GivePlayerWeaponEx(playerid, 24, 50);
                GivePlayerWeaponEx(playerid, 31, 200);
                GivePlayerWeaponEx(playerid, 33, 50);
                GivePlayerWeaponEx(playerid, 32, 250);
            }
            case 5:
            {
                GivePlayerWeaponEx(playerid, 24, 50);
                GivePlayerWeaponEx(playerid, 31, 250);
                GivePlayerWeaponEx(playerid, 33, 50);
                GivePlayerWeaponEx(playerid, 32, 250);
                GivePlayerWeaponEx(playerid, 27, 250);
                SetPlayerAmmo(playerid, WEAPON_RIFLE, 50);
            }
        }
    }
    else SendClientMessage(playerid, COLOR_ERROR, "Nu Esti In Hq!");
    return 1;
}
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Nush ce..

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • 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.