08.06.2013, 19:37
This is what im using:
You can do the same thing with the Age dialog. And you can use SetSpawnInfo, TogglePlayerSpectating(playerid, 0) Turning off the spectating and SpawnPlayer(playerid)
pawn Code:
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response)
{
// Register dialog
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Registering...","{FFFFFF}You have entered an {ADFF2F} invalid password.\n{FFFFFF}Type your password below to register a new account.","Register","Quit");
// Player File, Creating etc.
// Gender Dialog
ShowPlayerDialog(playerid, DIALOG_SEX, DIALOG_STYLE_MSGBOX, "- Sex -","What gender are you?","Male","Female");
}
}