stock D_R_C_Gender
Код:
stock D_R_C_Gender(playerid, response)
{
if(response)
{
//new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File, "character");
INI_WriteInt(File, "Gender", 1);
INI_Close(File);
ShowPlayerDialog(playerid, D_R_C_Origin, DIALOG_STYLE_INPUT, ""C_T_DialogTitle"New City Roleplay"C_T_Default": Character Origin", ""C_T_Default"Welcome to "C_T_DialogTitle"New City"C_T_Default": Roleplay.\nPlease enter your characters origin, Basically where he was born.", "Contine", "Exit");
}
else
{
//new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File, "character");
INI_WriteInt(File, "Gender", 2);
INI_Close(File);
ShowPlayerDialog(playerid, D_R_C_Origin, DIALOG_STYLE_INPUT, ""C_T_DialogTitle"New City Roleplay"C_T_Default": Character Origin", ""C_T_Default"Welcome to "C_T_DialogTitle"New City"C_T_Default": Roleplay.\nPlease enter your characters origin, Basically where she was born.", "Contine", "Exit");
}
}
stock D_R_C_Accent
Код:
stock D_R_C_Accent(playerid, response, inputtext[])
{
if(response)
{
if(!isnull(inputtext))
{
//new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File, "character");
INI_WriteString(File, "Accent", inputtext);
INI_Close(File);
TogglePlayerSpectating(playerid, 0);
SpawnPlayer(playerid);
PlayerTextDrawShow(playerid, Background);
PlayerTextDrawShow(playerid, Loading);
PlayerTextDrawShow(playerid, NewCity);
PlayerTextDrawShow(playerid, Roleplay);
SetTimerEx("EndLoadingScreen30", 3500, false, "i", playerid);
SetPlayerPos(playerid, 1743.1300, -1861.9683, 13.5769);
SetPlayerFacingAngle(playerid, 359.2573);
GivePlayerMoney(playerid, 25000);
}
else
{
ShowPlayerDialog(playerid, D_R_C_Accent, DIALOG_STYLE_INPUT, ""C_T_DialogTitle"New City Roleplay"C_T_Default": Character Accent", ""C_T_Default"Welcome to "C_T_DialogTitle"New City"C_T_Default": Roleplay.\nPlease enter your characters accent, Basically the way they speak.\n\n"C_T_Error"You forgot to enter the accent.", "Contine", "Exit");
}
}
else
{
KickPlayer(playerid, "\"Pressed Exit on Character Accent.\"");
}
}