I was made a register script..
Allthings okey, but game not started..
Код:
if(dialogid == SEXMENU)
{
if(response)
{
if(listitem == 0) // Male
{
if(RegistrationStep[playerid] == 1)
{
SetPlayerPos(playerid, 1.71875, 30.4062, 1200.34);
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pSex] = 1;
RegistrationStep[playerid] = 1;
SetPlayerSkin(playerid, 185);
ShowPlayerDialog(playerid, OOCMENU, DIALOG_STYLE_LIST, "Where are you from?","Europe\nAsia\nAmerica\nAfrica", "Select", "Cancel"); return 0;
}
}
if(listitem == 1) // Female
{
if(RegistrationStep[playerid] == 1)
{
SetPlayerPos(playerid, 1.71875, 30.4062, 1200.34);
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pSex] = 2;
RegistrationStep[playerid] = 1;
SetPlayerSkin(playerid, 193);
ShowPlayerDialog(playerid, OOCMENU, DIALOG_STYLE_LIST, "Where are you from?","Europe\nAsia\nAmerica\nAfrica", "Select", "Cancel");
return 0;
}
}
}
return 1;
}
if(dialogid == OOCMENU)
{
if(response)
{
if(listitem == 0) //
{
if(RegistrationStep[playerid] == 2)
{
SetPlayerPos(playerid, 1.71875, 30.4062, 1200.34);
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pOrigin] = 0;
RegistrationStep[playerid] = 2;
ShowPlayerDialog(playerid, DMMENU, DIALOG_STYLE_INPUT, "Age","How old are you? (18-99)", "Enter", "Cancel");
return 1;
}
}
if(listitem == 1) //
{
if(RegistrationStep[playerid] == 2)
{
SetPlayerPos(playerid, 1.71875, 30.4062, 1200.34);
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pOrigin] = 1;
RegistrationStep[playerid] = 2;
ShowPlayerDialog(playerid, DMMENU, DIALOG_STYLE_INPUT, "Age","How old are you? (18-99)", "Enter", "Cancel");
return 1;
}
}
if(listitem == 2) //
{
if(RegistrationStep[playerid] == 2)
{
SetPlayerPos(playerid, 1.71875, 30.4062, 1200.34);
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pOrigin] = 2;
RegistrationStep[playerid] = 2;
ShowPlayerDialog(playerid, DMMENU, DIALOG_STYLE_INPUT, "Age","How old are you? (18-99)", "Enter", "Cancel");
return 1;
}
}
if(listitem == 3) //
{
if(RegistrationStep[playerid] == 2)
{
SetPlayerPos(playerid, 1.71875, 30.4062, 1200.34);
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pOrigin] = 3;
RegistrationStep[playerid] = 2;
ShowPlayerDialog(playerid, DMMENU, DIALOG_STYLE_INPUT, "Age","How old are you? (18-99)", "Enter", "Cancel");
return 1;
}
}
}
return 1;
}
if(dialogid == DMMENU)
{
if(strlen(inputtext))
{
new tmppass[64];
new xyas;
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
xyas = strlen(inputtext)
PlayerInfo[playerid][pAge] = xyas;
}
}