10.07.2013, 01:22
Hi,
I have recently used the LSL-RP script. I want to know how to get rid of the mandatory RP test in the beginning, I tried a couple of things but they failed.
Here is the dialog code
I have recently used the LSL-RP script. I want to know how to get rid of the mandatory RP test in the beginning, I tried a couple of things but they failed.
Here is the dialog code
Код:
else if(dialogid == TEST_DIALOG) { if(!response) { Kick(playerid); } if(!IsNumeric(inputtext)) { ShowPlayerDialog(playerid, TEST_DIALOG, 1, "Birthdate", "Inputed value must be numeric, above 14 and bellow 80!\nType in how old do you want your character to be:", "Ok", "Quit"); return 1; } new age = strval(inputtext); if(age < 14 || age > 80) { ShowPlayerDialog(playerid, TEST_DIALOG, 1, "Birthdate", "Inputed value must be numeric, above 14 and bellow 80!\nType in how old do you want your character to be:", "Ok", "Quit"); return 1; } PlayerInfo[playerid][pAge] = age; ShowPlayerDialog(playerid, TEST_DIALOG+1, DIALOG_STYLE_LIST, "Please select your sex:", "Male\nFemale", "Ok", "Quit"); } else if(dialogid == TEST_DIALOG+1) { if(!response) { Kick(playerid); } PlayerInfo[playerid][pSex] = listitem+1; SetPlayerSkinEx(playerid, 21); PlayerInfo[playerid][pModel] = 21; ShowPlayerDialog(playerid, TEST_DIALOG+2, DIALOG_STYLE_LIST, "Please select where are you from:", "USA\nEurope\nAfrica\nAsia", "Ok", "Quit"); } else if(dialogid == TEST_DIALOG+2) { if(!response) { Kick(playerid); } ShowPlayerDialog(playerid, TEST_DIALOG+3, DIALOG_STYLE_LIST, "What is RP?", "1.Using OOC info IC.\n2.Killing people without a good reason.\n3.Stimulating the real life\n4.Jumping to get somewhere faster.", "Ok", "Quit"); } else if(dialogid == TEST_DIALOG+3) { if(!response) { Kick(playerid); } if(listitem != 2)//rigt one -1 { Kick(playerid); } ShowPlayerDialog(playerid, TEST_DIALOG+4, DIALOG_STYLE_LIST, "What is DM?", "1.Car Surfing.\n2.Killing people without a good reason.\n3.Using IC info OOC\n4.Using keybinds.", "Ok", "Quit"); } else if(dialogid == TEST_DIALOG+4) { if(!response) { Kick(playerid); } if(listitem != 1)//rigt one -1 { Kick(playerid); } ShowPlayerDialog(playerid, TEST_DIALOG+5, DIALOG_STYLE_LIST, "What is IC?", "1.Chat between players.\n2.Chat between player-controlled characters.\n3.Incorrect usage of chat.\n4.Using shortcuts in chat.", "Ok", "Quit"); } else if(dialogid == TEST_DIALOG+5) { if(!response) { Kick(playerid); } if(listitem != 1)//rigt one -1 { Kick(playerid); } ShowPlayerDialog(playerid, TEST_DIALOG+6, DIALOG_STYLE_LIST, "What is OOC?", "1.Chat between player-controlled characters.\n2.Chat between players\n3.One of city centers.\n4.Using shortcuts in chat.", "Ok", "Quit"); } else if(dialogid == TEST_DIALOG+6) { if(!response) { Kick(playerid); } if(listitem != 1)//rigt one -1 { Kick(playerid); } ShowPlayerDialog(playerid, TEST_DIALOG+7, DIALOG_STYLE_LIST, "What is a good example of /me?", "1./me shoots David and takes his money.\n2./me kills John.\n3./me and /you.\n4./me extends his right arm, attemping to give Ivan a gun./do s/f.", "Ok", "Quit"); } else if(dialogid == TEST_DIALOG+7) { if(!response) { Kick(playerid); } if(listitem != 3)//rigt one -1 { Kick(playerid); } ShowPlayerDialog(playerid, TEST_DIALOG+8, DIALOG_STYLE_LIST, "What is the correct usage of /b (local ooc chat)?", "1./b Help! He will kidnap me.\n2./b Wanna buy some drugs?.\n3./b Where are you from IRL?\n4./b What's your phone number IC?", "Ok", "Quit"); } else if(dialogid == TEST_DIALOG+8) { if(!response) { Kick(playerid); } if(listitem != 2)//rigt one -1 { Kick(playerid); } ShowPlayerDialog(playerid, TEST_DIALOG+9, DIALOG_STYLE_LIST, "If you want to become a helper, what will you do?", "1.Contact server owner\n2.Ask any lead admin to add me as a helper.\n3.Apply on the forums if applications are open, if not ill wait.", "Ok", "Quit"); } else if(dialogid == TEST_DIALOG+9) { if(!response) { Kick(playerid); } if(listitem != 2)//rigt one -1 { Kick(playerid); } ShowPlayerDialog(playerid, TEST_DIALOG+10, DIALOG_STYLE_LIST, "What will you do if someone attacked you from behind with a gun?", "1.Run\n2.Insult him in OOC chat if i didn't do anything to him.\n3.Ask for help using /helpme.\n4.Use /me and /do commands to describe that i'm scared and do /handsup.", "Ok", "Quit"); } else if(dialogid == TEST_DIALOG+10)//TEST_DIALOG+10 BEFORE { if(!response) { Kick(playerid); } if(listitem != 3)//rigt one -1 { Kick(playerid); } ClearChatbox(playerid, 5); RegistrationStep[playerid] = 0; PlayerInfo[playerid][pTut] = 1; SetTimerEx("Tutorial", 3000, false, "i", playerid); ShowPlayerDialog(playerid, MSG_DIALOG, 0, "Congratulations, you have sucessfully registered", "\nIf you need any help, use /helpme (ooc)\nIf you see a hacker, report him using /report\nWelcome to ShiwaniGaming Roleplay\nPlease register on our forums ", "Ok", "Quit"); } return 0; }