Jump to content
  • 0

Cum se Pune Tutorial In Server....?


danutz_samp

Question

4 answers to this question

Recommended Posts

Guest PlayON

Foloseste variabile, si foloseste gen Var = 1, Var = 4.

Poti face ca sa apesi enter sa dai next la tutorial, la OnPlayerKeyStateChange

if(newkeys == KEY_FIRE)
{
//etc
}

Link to comment
Share on other sites

Guest PlayON

SCZ dar nu prea inteleg lamurestema si pe mine......  :( :( :( :-[ :-[


new Timer[MAX_PLAYERS];
//Asta vine undeva unde vrei sa inceapa timeru, la onplayerspawn sau onplayerconnect.
Timer[playerid] = SetTimerEx("TUT", 12000, 1 , "i", playerid );

forward TUT( playerid );
public TUT( playerid )
{
    new Var;
    Var++;
    if ( Var == 1 )
    {
           SendClientMessage( playerid, COLOR_WHITE, "Tutorial, partea 1!");
           SendClientMessage( playerid, COLOR_WHITE, " !");//spatiu gol dintre titlu si text
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
    }
    if ( Var == 2 )
    {
           SendClientMessage( playerid, COLOR_WHITE, "Tutorial, partea 1!");
           SendClientMessage( playerid, COLOR_WHITE, " !");//spatiu gol dintre titlu si text
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
    }
    if ( Var == 3 )
    {
           SendClientMessage( playerid, COLOR_WHITE, "Tutorial, partea 1!");
           SendClientMessage( playerid, COLOR_WHITE, " !");//spatiu gol dintre titlu si text
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
    }
    if ( Var = 4 ) SendClientMessage(playerid, COLOR_RED, "Tutorialul s-a terminat"),KillTimer(Timer[playerid]);
    return 1;
}

Link to comment
Share on other sites


new Timer[MAX_PLAYERS];
//Asta vine undeva unde vrei sa inceapa timeru, la onplayerspawn sau onplayerconnect.
Timer[playerid] = SetTimerEx("TUT", 12000, 1 , "i", playerid );

forward TUT( playerid );
public TUT( playerid )
{
    new Var;
    Var++;
    if ( Var == 1 )
    {
           SendClientMessage( playerid, COLOR_WHITE, "Tutorial, partea 1!");
           SendClientMessage( playerid, COLOR_WHITE, " !");//spatiu gol dintre titlu si text
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
    }
    if ( Var == 2 )
    {
           SendClientMessage( playerid, COLOR_WHITE, "Tutorial, partea 1!");
           SendClientMessage( playerid, COLOR_WHITE, " !");//spatiu gol dintre titlu si text
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
    }
    if ( Var == 3 )
    {
           SendClientMessage( playerid, COLOR_WHITE, "Tutorial, partea 1!");
           SendClientMessage( playerid, COLOR_WHITE, " !");//spatiu gol dintre titlu si text
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
           SendClientMessage( playerid, COLOR_RED, "Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj Mesaj ");
    }
    if ( Var = 4 ) SendClientMessage(playerid, COLOR_RED, "Tutorialul s-a terminat"),KillTimer(Timer[playerid]);
    return 1;
}

SCZ De dublu post...dar ms mult man....ms  :-* :-* ;) ;) esti tare tineo tot asa

Link to comment
Share on other sites

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.