Jump to content

zNx.

Membru
  • Posts

    23
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by zNx.

    1. if(CP[playerid] == 2)
    2.     {
    3.     DisablePlayerCheckpoint(playerid);
    4.     CP[playerid] = 2;
    5.     GivePlayerCash(playerid, 5000);
        DisableRemoteVehicleCollisions(playerid, 1);
     
     
    Trebuie sa iei variabila  ArmsV[0][playerid] = arms,si  adaugi sus ceva de genul "RespawnCar(playerid,  ArmsV[0]);".
    Nu o sa-ti dau mura in gura cauta functia de a respawn-a o singura masina gen daca ai o comanda /spawncar <id> , iei variabila si adaugi in paranteza "ArmsV[0]".
     
     
     
     
    • Upvote 1
  1. Da-ti si tu seama,are ceva in comun cu DIALOG_REGISTER3.Vezi si tu care e numarul de DIALOG_REGISTER PE care-l ai si vezi ce ce dialog_register iti lipseste(daca nu ma insel e intre 1-6 numarul).

     

    NU MAI DA-TI MURA IN GURA INCEPATORILOR.

     

  2. Problema intalnita (descriere):Deci am o comanda pe strcm si vreau sa o transform in zcmd...
    Ero(area / rile) / warning-(ul / urile):-
    Liniile de cod / sursa / script-ul(obligatoriu):

    Quote

    if(!strcmp(cmd, "/turfs", true))
        {
            if(IsPlayerConnected(playerid))
            {
            if(OnDuty[playerid]==0)
            {
            OnDuty[playerid]=1;
            for(idx = 1;idx< 51; idx++)
            {
                if(TeritoriuData[idx][tOwned] == 4)
                {
                       GangZoneShowForPlayer(playerid, turf[idx], TEAM_VAGOS_COLOR);
                }
                else if(TeritoriuData[idx][tOwned] == 5)
                {
                    GangZoneShowForPlayer(playerid, turf[idx], TEAM_GROVE_COLOR);
                }
                else if(TeritoriuData[idx][tOwned] == 10)
                {
                    GangZoneShowForPlayer(playerid, turf[idx], TEAM_BALLAS_COLOR);
                }
                else if(TeritoriuData[idx][tOwned] == 11)
                {
                    GangZoneShowForPlayer(playerid, turf[idx], TEAM_AZTECAS_COLOR);
                }

            }
            SendClientMessage(playerid, COLOR_STAFF_INFO, "Ai activat teritoriile.");
            }else{
            OnDuty[playerid]=0;
                        for(idx = 1;idx< 51; idx++)
            {
                if(TeritoriuData[idx][tOwned] == 4)
                {
                       GangZoneHideForPlayer(playerid, turf[idx]);
                }
                else if(TeritoriuData[idx][tOwned] == 5)
                {
                    GangZoneHideForPlayer(playerid, turf[idx]);
                }
                else if(TeritoriuData[idx][tOwned] == 10)
                {
                    GangZoneHideForPlayer(playerid, turf[idx]);
                }
                else if(TeritoriuData[idx][tOwned] == 11)
                {
                    GangZoneHideForPlayer(playerid, turf[idx]);
                }

            }
            SendClientMessage(playerid, COLOR_STAFF_INFO, "Ai dezactivat teritoriile.");
            }
            }
            return false;
            }


    Imagini / Video (optional):
    Ati incercat sa rezolvati singur?: Da,am lasat-o asa iar cand intram pe server mergea numai comanda aceasta...

  3. 1 minute ago, WiDuAlK said:

    Din cate am vazut de-alungul vremii, multi au patit asa ceva utilizand ZCMD, personal nu m-a prea intereseat aceasta problema asa ca nu m-am documentat dar, eu nu am avut aceasta problema pentru ca nu folosesc  ZCMD. Iti sugerez sa schimbi procesorul de comenzi si problema se rezolva de la sine.

    Imi recomanzi un procesor,care sa mearga si sa nu mai am probleme de genul acesta ?

  4. Deci,tu daca nu pCarKey1 sau altele,modifici cu variabilele tale.Tu trebuie sa adaugi aceasta chestie la inceputul comenzi:

    Quote

    if(IsPlayerInRangeOfPoint(playerid, 4.5, 328.9831,-1513.6188,36.0391))
        {
            if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, COLOR_ERROR, "You need at least level 3 !");
            if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1 && PlayerInfo[playerid][pPremiumAccount] == 0) return SendClientMessage(playerid, COLOR_ERROR, "* Ai deja 2 masini! (Pentru a detine mai mult de 2 masini ai nevoie de cont premium)");
            if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1 && PlayerInfo[playerid][pPremiumAccount] == 1)

    Dupa ce ai adaugat,mergi unde se termina comanda si adaugi:

    Quote

       }
        }
        else SendClientMessage(playerid, COLOR_ERROR, "Nu te aflii la Dealership!");
        return 1;
    }

     

     

     

    REPET! MODIFICI CU VARIABILELE TALE!

  5. Problema intalnita (descriere):Deci comanda exista,dar serverul imi spune ca Unknow Command,si nu stiu de ce,comanda nu este scrisa la public OnPlayerCommandPerformed(playerid, cmdtext[], success).
    Ero(area / rile) / warning-(ul / urile):

    Quote

    CMD:v(playerid, params[])
    {
        new vstring[254], vlock[30], cw = PlayerInfo[playerid][pCarKey], cw1 = PlayerInfo[playerid][pCarKey1], cw2 = PlayerInfo[playerid][pCarKey2], cw3 = PlayerInfo[playerid][pCarKey3];

        if(VehiclesInfo[cw][vLock] == 0 && VehiclesInfo[cw1][vLock] == 0)
        {
            vlock = "{2ED131}Unlocked";
        }
        if(VehiclesInfo[cw][vLock] == 1 && VehiclesInfo[cw1][vLock] == 1)
        {
            vlock = "{D41320}Locked";
        }
        if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1)
        {
            VControl[playerid] = 1;
            format(vstring, sizeof(vstring), "%s - %s\n%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vModel])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock);
            ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
        }
        if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] == 0)
        {
            VControl[playerid] = 2;
            format(vstring, sizeof(vstring), "%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vServerID])-400], vlock);
            ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
        }
        if(PlayerInfo[playerid][pCarKey] == 0 && PlayerInfo[playerid][pCarKey1] >= 1)
        {
            VControl[playerid] = 3;
            format(vstring, sizeof(vstring), "%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock);
            ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
        }
        if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1 && PlayerInfo[playerid][pCarKey2] >= 1 && PlayerInfo[playerid][pCarKey3] >= 1)
        {
            VControl[playerid] = 4;
            format(vstring, sizeof(vstring), "%s - %s\n%s - %s\n%s - %s\n%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw2][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw3][vServerID])-400], vlock);
            ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
        }
        return 1;
    }


    Liniile de cod / sursa / script-ul(obligatoriu):
    Imagini / Video (optional):
    Ati incercat sa rezolvati singur?: Da,inainte era return 0; si tot nu mergea,am pus 1 si la fel.

  6. Am comanda :

    Quote

    CMD:v(playerid, params[])
    {
        new vstring[254], vlock[30], cw = PlayerInfo[playerid][pCarKey], cw1 = PlayerInfo[playerid][pCarKey1], cw2 = PlayerInfo[playerid][pCarKey2], cw3 = PlayerInfo[playerid][pCarKey3];

        if(VehiclesInfo[cw][vLock] == 0 && VehiclesInfo[cw1][vLock] == 0)
        {
            vlock = "{2ED131}Unlocked";
        }
        if(VehiclesInfo[cw][vLock] == 1 && VehiclesInfo[cw1][vLock] == 1)
        {
            vlock = "{D41320}Locked";
        }
        if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1)
        {
            VControl[playerid] = 1;
            format(vstring, sizeof(vstring), "%s - %s\n%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vModel])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock);
            ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
        }
        if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] == 0)
        {
            VControl[playerid] = 2;
            format(vstring, sizeof(vstring), "%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vServerID])-400], vlock);
            ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
        }
        if(PlayerInfo[playerid][pCarKey] == 0 && PlayerInfo[playerid][pCarKey1] >= 1)
        {
            VControl[playerid] = 3;
            format(vstring, sizeof(vstring), "%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock);
            ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
        }
        if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1 && PlayerInfo[playerid][pCarKey2] >= 1 && PlayerInfo[playerid][pCarKey3] >= 1)
        {
            VControl[playerid] = 4;
            format(vstring, sizeof(vstring), "%s - %s\n%s - %s\n%s - %s\n%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw2][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw3][vServerID])-400], vlock);
            ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
        }
        return 1;
     

    Care cand o scriu pe server imi zice ca nu exista comanda,dar defapt comanda e creata.

    PS:Comanda nu e in public OnPlayerCommandPerformed".

  7. @Tud0r. #Imparat #Codat 

    Deci eu nu am spus ca acest gamemode este facut de mine,eu sunt bun prieten cu ~Whitter~ (asa zisul creator a acestui GM)i-am cerut permisiunea si a spus ca este ok ca sa il pun si pe alte site-uri.

     

    Spoiler

    Destul de ok gamemode-ul, dar pare neterminat, nu știu de ce. ( asta doar din ce văd în poze )

    @Pulse

    Il poti descarca si poti vedea singur daca este functional/neterminat.

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