else if(RegistrationStep[playerid] == 2)
{
new age = strvalEx(text);
if(age < 10 || age > 95)
{
SendClientMessage(playerid, COLOR_NICEBLUE, "How old are you, please?");
return 0;
}
PlayerInfo[playerid][pAge] = age;
format(string, sizeof(string), "Wow, you're only %d years old? You've got a full life ahead of you here at Los Santos!",PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
RegistrationStep[playerid] = 3;
SendClientMessage(playerid, COLOR_NICEBLUE, "What country are you from, may I ask (Africa, America, Asia, Europe, England)?");
return 0;
}
else if(RegistrationStep[playerid] == 3)
{
new idx;
tmp = strtok(text, idx);
if((strcmp("america", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("America")))
{
PlayerInfo[playerid][pOrigin] = 1;
SendClientMessage(playerid, COLOR_YELLOW2, "United States of America? So, you can't of travelled to far, then?");
SendClientMessage(playerid, COLOR_NICEBLUE, "Nonetheless, thank you for that essence of information!");//, now you will proceed to the Tutorial.");
SendClientMessage(playerid, COLOR_WHITE, "You have been submitted to a short role-play questionnaire to test your abilities of role-play.");
RegistrationStep[playerid] = 0;
ClearChatbox(playerid, 2);
SendClientMessage(playerid, COLOR_NICEBLUE, "[Q]: What does the term 'RP' stand for?");
SendClientMessage(playerid, COLOR_WHITE, "[1]. Robbing people.");
SendClientMessage(playerid, COLOR_WHITE, "[2]. Roleplay");
SendClientMessage(playerid, COLOR_WHITE, "[3]. That is not a term. That has been made up on the spot!");
//TutTime[playerid] = 1;
//TutTime[playerid] = 118;
return 0;
}
else if((strcmp("europe", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("europe")))
{
PlayerInfo[playerid][pOrigin] = 2;
SendClientMessage(playerid, COLOR_YELLOW2, "Europe is a phenomenal continent. It's a pleasure to meet you!");
SendClientMessage(playerid, COLOR_NICEBLUE, "Nonetheless, thank you for that essence of information!");//, now you will proceed to the Tutorial.");
SendClientMessage(playerid, COLOR_WHITE, "You have been submitted to a short role-play questionnaire to test your abilities of role-play.");
RegistrationStep[playerid] = 0;
ClearChatbox(playerid, 2);
SendClientMessage(playerid, COLOR_NICEBLUE, "[Q]: What does the term 'RP' stand for?");
SendClientMessage(playerid, COLOR_WHITE, "[1]. Robbing people.");
SendClientMessage(playerid, COLOR_WHITE, "[2]. Roleplay");
SendClientMessage(playerid, COLOR_WHITE, "[3]. That is not a term. That has been made up on the spot!");
//TutTime[playerid] = 1;
//TutTime[playerid] = 118;
return 0;
}
else if((strcmp("asia", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Asia")))
{
PlayerInfo[playerid][pOrigin] = 3;
SendClientMessage(playerid, COLOR_YELLOW2, "Asia? I heard Asia have a lot of custom delacies, enriched with flavourings and such!");
SendClientMessage(playerid, COLOR_NICEBLUE, "Nonetheless, thank you for that essence of information!");//, now you will proceed to the Tutorial.");
SendClientMessage(playerid, COLOR_WHITE, "You have been submitted to a short role-play questionnaire to test your abilities of role-play.");
RegistrationStep[playerid] = 0;
ClearChatbox(playerid, 2);
SendClientMessage(playerid, COLOR_NICEBLUE, "[Q]: What does the term 'RP' stand for?");
SendClientMessage(playerid, COLOR_WHITE, "[1]. Robbing people.");
SendClientMessage(playerid, COLOR_WHITE, "[2]. Roleplay");
SendClientMessage(playerid, COLOR_WHITE, "[3]. That is not a term. That has been made up on the spot!");
//TutTime[playerid] = 1;
//TutTime[playerid] = 118;
return 0;
}
else if((strcmp("England", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Britain")))
{
PlayerInfo[playerid][pOrigin] = 3;
SendClientMessage(playerid, COLOR_YELLOW2, "Nice, you're from England? Did you know Deluxe Role-play was founded by a British man?");
SendClientMessage(playerid, COLOR_NICEBLUE, "Nonetheless, thank you for that essence of information!");//, now you will proceed to the Tutorial.");
SendClientMessage(playerid, COLOR_WHITE, "You have been submitted to a short role-play questionnaire to test your abilities of role-play.");
RegistrationStep[playerid] = 0;
ClearChatbox(playerid, 2);
SendClientMessage(playerid, COLOR_NICEBLUE, "[Q]: What does the term 'RP' stand for?");
SendClientMessage(playerid, COLOR_WHITE, "[1]. Robbing people.");
SendClientMessage(playerid, COLOR_WHITE, "[2]. Roleplay");
SendClientMessage(playerid, COLOR_WHITE, "[3]. Thatis not a term. That has been made up on the spot!");
RegistrationQuestion[playerid] = 1;
//TutTime[playerid] = 1;
//TutTime[playerid] = 118;
return 0;
}
else if((strcmp("africa", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Africa")))
{
PlayerInfo[playerid][pOrigin] = 4;
SendClientMessage(playerid, COLOR_YELLOW2, "Africa? I heard it's really hot there! The culture must be amazing, though?");
SendClientMessage(playerid, COLOR_NICEBLUE, "Nonetheless, thank you for that essence of information!");//, now you will proceed to the Tutorial.");
SendClientMessage(playerid, COLOR_WHITE, "You have been submitted to a short role-play questionnaire to test your abilities of role-play.");
RegistrationStep[playerid] = 0;
ClearChatbox(playerid, 2);
SendClientMessage(playerid, COLOR_NICEBLUE, "[Q]: What does the term 'RP' stand for?");
SendClientMessage(playerid, COLOR_WHITE, "[1]. Robbing people.");
SendClientMessage(playerid, COLOR_WHITE, "[2]. Roleplay");
SendClientMessage(playerid, COLOR_WHITE, "[3]. That is not a term. That has been made up on the spot!");
RegistrationQuestion[playerid] = 1;
//TutTime[playerid] = 1;
//TutTime[playerid] = 118;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_NICEBLUE, "What country are you from, may I ask (Africa, USA, Asia, Europe, England)?");
}
return 0;
}
return 0;
}
|