How do I make an RP Quiz like the PR-RP one? (Rep+)
#5

These at the top
pawn Код:
new TUT[MAX_PLAYERS], PART1[MAX_PLAYERS], PART2[MAX_PLAYERS], PART3[MAX_PLAYERS];
forward StepTwo(playerid);
forward StepThree(playerid);
This after they register
pawn Код:
TUT[playerid] = 1;
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(TUT[playerid] == 1)
    {
        //do your camera setting and shit if that's what you're planning on doing...
        SendClientMessage(playerid, 0xFF0000AA, "We'll being the tutorial here.");
        SendClientMessage(playerid, 0xFF0000AA, "What is RP?");
        SetPlayerHealth(playerid, 10000); //lets give them godmode so no one kills em
        Part1[playerid] == 1;
    }
    return 1;
}

public StepTwo(playerid)
{
    //set their camera shit and ask the question
    SendClientMessage(playerid, 0xFF0000, "What is DM?");
    PART2[playerid] = 1;
    return 1;
}
public StepThree(playerid)
{
    //set their camera shit and ask the question
    SendClientMessage(playerid, 0xFF0000, "The next Question");
    PART3[playerid] = 1;
    return 1;
}
Those two will be how we'll be calling for the next step.

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(PART1[playerid] == 1)
    {
        if(strcmp(text, "roleplay", true, 9) == 0 || strcmp(text, "role play", true, 10) == 0)
        {
            StepTwo(playerid);
        }
        else return Kick(playerid);
        return 0;
    }
    if(PART2[playerid] == 1)
    {
        if(strcmp(text, "deathmatch", true, 11) == 0 || strcmp(text, "death match", true, 12) == 0)
        {
            StepThree(playerid);
        }
        else return Kick(playerid);
        return 0;
    }
    return 1;
}
Woops replied instead of edited lol
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)