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

Hello, if you ever went on to Project reality or Central City Roleplay, You will notice their RP Quiz is scripted differently.

How do I make an RP Quiz Like PR-RP?

Player answers a few questions and then sends them to Admins and Helper.
Reply
#2

Could you tell us what it has...for the ones who don't play RP that can try and help you (like me).
Reply
#3

Well, Players answer Questions, Such as "What does RP Mean?" "What does DM Mean?", It is hard to explain, It basicly gives players client messages and then they answer the questions in the Client Messages, Then when they get to question 10, then the answers are sent to Admins (pAdmin) and Helpers (pHelper).
Reply
#4

It uses OnPlayerText, with a few vars and what step they're on...So if they're on PART1 (first sendclientmessage) then on OnPlayerText you'd check if the text is the correct answer for that step...It might be a bit big if I wrote it here, and someone might have a better method than what I'm thinking of...I'll write it down anyway...

Give me a minute, I'll edit this post when I'm done
Reply
#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
#6

Quote:
Originally Posted by [ABK]Antonio
Посмотреть сообщение
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
Well, it is close, But I expected for the Answers to be Sent to Admins and Helpers at the end of the Quiz, So we can decide if the player is an RPer or a Non-RPer.
Reply
#7

How do I add their answer so that it is saved and then shows the admins and helpers all the saved answers at the end?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)