Jump to content
  • 0

Problema Cmd:tutorial si Functie Tutorial


WingsB

Question

Salut doresc sa fac si eu activ acest tutorial din GM el cand creez un cont nou nu functioneaza, in tutorial ma trimite in alta lume virtuala, dar in joc nu functioneaza ma trimite  sa cumpar telefon ceas etc cu  Checkpoint dar in loc nu functioneaza 

cand folosesc in joc comanda /tutorial nu merge, va rog ma puteti ajuta sa activez tutorialu?

 

si undeva in GM am mai gasit  inca o linie ca si ce-a din YCMD:tutorial, o postez mai jos.

 

Citat

YCMD:tutorial(playerid, params[], help) {
    switch(PlayerInfo[playerid][pTutorial]) {
        case 1..2: {
            SCM(playerid, COLOR_LIGHTGOLD, "Mergi la checkpoint-ul marcat pe minimap si tasteaza </exam> pentru a obtine permisul de conducere auto.");
            if(InExamen[playerid] < 1) {
                CP[playerid] = 53;
                SetPlayerCheckpointEx(playerid, 2333.3345,-17.7633,26.4844, 2.0);
            }
        }
        case 3..4: {
            SCM(playerid, COLOR_LIGHTGOLD, "Mergi si achizitioneaza-ti un telefon din magazinul marcat pe minimap.");
            CP[playerid] = 53;
            SetPlayerCheckpointEx(playerid, 2242.7649,52.7174,26.6671, 2.0);
        }
        case 5..6: {
            SCM(playerid, COLOR_LIGHTGOLD, "Mergi si schimba-ti look-ul la afacerea de tip 'Clothing store' marcata pe minimap.");
            SCM(playerid, COLOR_LIGHTGOLD, "Pentru a schimba skin-ul tasteaza comanda </clothes> in business. Un meniu iti va aparea pe ecran. Alege un skin.");
            CP[playerid] = 53;
            SetPlayerCheckpointEx(playerid, 2277.7778,51.3101,26.4844, 2.0);
        }
    }
    return true;
}
function Tutorial(playerid) {
    switch(PlayerInfo[playerid][pTutorial]) {
        case 0: {
            PlayerInfo[playerid][pTutorial] ++;
            UpdateVar(playerid, "Tutorial", PlayerInfo[playerid][pTutorial]);
            SCM(playerid, COLOR_LIGHTGOLD, "-- Tutorial Step 1/5 --");
            gString[0] = EOS;
            format(gString, 111, "Contul tau este al #%d-lea inregistrat iar in momentul de fata sunt %d/%d playeri connectati.", GetPlayerInregisters(), Iter_Count(Player), MAX_PLAYERS);
            SCM(playerid, COLOR_LIGHTGOLD, gString);
            SCM(playerid, COLOR_LIGHTGOLD, "Pentru ca esti nou pe server, vei fi nevoit sa parcurgi un mic tutorial pentru a cunoaste o parte din server.");
            SCM(playerid, COLOR_LIGHTGOLD, "Ai fost transferat intr-o alta lume virtuala iar pentru inceput trebuie sa dai de permis.");
            SCM(playerid, COLOR_LIGHTGOLD, "Mergi si achizitioneaza-ti un telefon o agenda si credit din magazinul marcat pe minimap");
            GameTextForPlayer(playerid, "Step: 1/5", 5000, 1);
            SetPlayerCheckpointEx(playerid, 2183.7578,2295.5403,10.8203, 2.0);
            CP[playerid] = 53;
        }
        case 1: {
            SCM(playerid, COLOR_YELLOW, "Nu ai terminat tutorialul!");
            SCM(playerid, COLOR_LIGHTGOLD, "-- Tutorial Step 1/5 --");
            SCM(playerid, COLOR_LIGHTGOLD, "Pentru ca esti nou pe server, vei fi nevoit sa parcurgi un mic tutorial pentru a cunoaste o parte din server.");
            SCM(playerid, COLOR_LIGHTGOLD, "Ai fost transferat intr-o alta lume virtuala iar pentru inceput trebuie sa dai de permis.");
            SCM(playerid, COLOR_LIGHTGOLD, "Mergi si achizitioneaza-ti un telefon o agenda si credit din magazinul marcat pe minimap");
            GameTextForPlayer(playerid, "Step: 1/5", 5000, 1);
            SetPlayerCheckpointEx(playerid, 2183.7578,2295.5403,10.8203, 2.0);
            CP[playerid] = 53;
        }        
    }
    return true; 
}

 

aici este si linia asemanatoare CMD

 

Citat

    switch(PlayerInfo[playerid][pTutorial]) {
        case 1..2: {
            SCM(playerid, COLOR_LIGHTGOLD, "Mergi la checkpoint-ul marcat pe minimap si tasteaza </exam> pentru a obtine permisul de conducere auto.");
            if(InExamen[playerid] < 1) {
                CP[playerid] = 53;
                SetPlayerCheckpointEx(playerid, 2333.3345,-17.7633,26.4844, 2.0);
            }
        }
        case 3..4: {
            SCM(playerid, COLOR_LIGHTGOLD, "Mergi si achizitioneaza-ti un telefon din magazinul marcat pe minimap.");
            CP[playerid] = 53;
            SetPlayerCheckpointEx(playerid, 2242.7649,52.7174,26.6671, 2.0);
        }
        case 5..6: {
            SCM(playerid, COLOR_LIGHTGOLD, "Mergi si schimba-ti look-ul la afacerea de tip 'Clothing store' marcata pe minimap.");
            SCM(playerid, COLOR_LIGHTGOLD, "Pentru a schimba skin-ul tasteaza comanda </clothes> in business. Un meniu iti va aparea pe ecran. Alege un skin.");
            CP[playerid] = 53;
            SetPlayerCheckpointEx(playerid, 2277.7778,51.3101,26.4844, 2.0);
        }
    }
    PlayerInfo[playerid][pTutorial] = 10;
    return true;
}

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.