Question?
#1

How to make a RP tutotrial for my RP server?

My RP server is Next Revolution Roleplay
Reply
#2

Create a variable and increase it by 1, by setting a timer each x amount of seconds/minutes to change.

pawn Код:
new Tutorial[MAX_PLAYERS];
forward Tut(playerid);

public OnPlayerConnect(playerid)
{
    Tutorial[playerid] = 1;
    return 1;
}


public OnPlayerSpawn(playerid)
{
    if(Tutorial[playerid] == 1) {
        Tut(playerid);
        Tutorial[playerid] = 2;
    }

    if(Tutorial[playerid] == 0) return printf("Tutorial finshed"); // normal spawn stuff.
    return 1;
}


public Tut(playerid)
{
    if(Tutorial[playerid] == 2) {
        SetTimerEx("Tut",10000,false,"i",playerid);
// Tut part 1 stuff
        Tutorial[playerid] = 3;
    }
    if(Tutorial[playerid] == 3) {
        SetTimerEx("Tut",10000,false,"i",playerid);
// Tut part 2 stuff
        Tutorial[playerid] = 4;
    }
    if(Tutorial[playerid] == 4) {
        Tutorial[playerid] = 0;
        SpawnPlayer(playerid);
    }
    return 1;
}
Reply
#3

HOLY shitttttttttt!!! Thank you very much Sir. Kitten i will give you 1 rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)