na pogresno mjesto si dodao registraciju
{
PutPlayerInTutorial(playerid, 1);
}
}
}
case 105:
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, WHITE, "Alright, let's get stuck in then. ");
SendClientMessage(playerid, GREY, "-----------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, WHITE, "INTRODUCTION");
SendClientMessage(playerid, WHITE, "Welcome to the server tutorial. This tutorial was created to help you around the server, so you know where things");
SendClientMessage(playerid, WHITE, "are, and the basic parts of game play on our server - we have quite a few very unique features you may not be used to.");
SendClientMessage(playerid, GREY, "Please type \"next\" in the chatbox, when you have fully read this section.");
SendClientMessage(playerid, GREY, "-----------------------------------------------------------------------------------------------------------------");
Player = 1;
}
case 1:
{
SendClientMessage(playerid, GREY, "-----------------------------------------------------------------------------------------------------------------");
ShowPlayerDialog(playerid, 106, DIALOG_STYLE_LIST, "Please Specify Your Gender", "Male\nFemale", "Select", "Cancel");
SendClientMessage(playerid, WHITE, "Roger that, so let's get a bit of vital information before you can spawn!");
SendClientMessage(playerid, GREY, "-----------------------------------------------------------------------------------------------------------------");
}
}
}
case 106:
{
switch(listitem)
{
case 0:
{
Player = 1;
SendClientMessage(playerid, GREY, "-----------------------------------------------------------------------------------------------------------------");
ShowPlayerDialog(playerid, 107, DIALOG_STYLE_LIST, "Please Specify Your Age", "18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40", "Select", "Cancel");
SendClientMessage(playerid, WHITE, "Okay, so you're a dude. Let's just get your character's age and then you can spawn!");
SendClientMessage(playerid, GREY, "-----------------------------------------------------------------------------------------------------------------");
}
case 1:
{
Player = 2;
SendClientMessage(playerid, GREY, "-----------------------------------------------------------------------------------------------------------------");
ShowPlayerDialog(playerid, 107, DIALOG_STYLE_LIST, "Please Specify Your Age", "18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40", "Select", "Cancel");
SendClientMessage(playerid, WHITE, "Okay, so you're a chick. Let's just get your character's age and then you can spawn!");
SendClientMessage(playerid, GREY, "-----------------------------------------------------------------------------------------------------------------");
}
}
}
case 107:
{
new string;
listitem += 18;
Player = listitem;
Player = 0;
SendClientMessage(playerid, GREY, "-----------------------------------------------------------------------------------------------------------------");
format(string, sizeof(string), "Okay, so your character is %d.", Player);
SendClientMessage(playerid, WHITE, string);
SendClientMessage(playerid, WHITE, "Now, we can let you spawn. We hope that you enjoy your experience here and play here regularly.");
SendClientMessage(playerid, WHITE, "If you have any server-related questions, please use /n. If you wish to just have a chat, please use /o");
SendClientMessage(playerid, GREY, "-----------------------------------------------------------------------------------------------------------------");
PutPlayerInTutorial(playerid, 99);
}
case 1195:
{
if(strcmp(inputtext, "yes", true) == 0)
{
ShowPlayerDialog(playerid, 3895, DIALOG_STYLE_INPUT, "Registration", "Please enter your password to register your account.", "Register", "Cancel");
SendClientMessage(playerid, ANNOUNCEMENT, "You will automatically be logged in, once you have registered.");
}
else
{
SendClientMessage(playerid, WHITE, "Incorrect - You may not play.");
Kick(playerid);
}
}
//-----------------------------------------------------------------------------------------------------------------
et ti kompletna registracija et ako pokusaj pa javi jer sam imao i ja isti problea i rijesio na ovaj nacin
et to kopiraj ispod ovog negdje na sredinu
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
ipak da pokusam pomoc jer sam imao isti problema pa ne smeta valjda odg ako mogne mogne ako nemogne nikom nista 😄
[POMOC]Registracija
656
pregleda
2
postova
18. Jul 2011.
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava