adds features dialog on account creation

This commit is contained in:
Damen 2019-01-12 01:20:28 -05:00
parent bf3a2ba9e5
commit c957e00d40
2 changed files with 8 additions and 1 deletions

View File

@ -22,9 +22,14 @@ CMD:help( playerid, params[ ] ) {
} }
CMD:features( playerid, params[ ] ) { CMD:features( playerid, params[ ] ) {
return DisplayFeatures( playerid );
}
stock DisplayFeatures( playerid )
{
SetPVarInt( playerid, "help_category", 1 ); SetPVarInt( playerid, "help_category", 1 );
mysql_function_query( dbHandle, "SELECT `SUBJECT`,`ID`,`CATEGORY` FROM `HELP` WHERE `CATEGORY`=1 ORDER BY `SUBJECT` ASC", true, "OnFetchCategoryResponse", "dd", playerid, 1 ); mysql_function_query( dbHandle, "SELECT `SUBJECT`,`ID`,`CATEGORY` FROM `HELP` WHERE `CATEGORY`=1 ORDER BY `SUBJECT` ASC", true, "OnFetchCategoryResponse", "dd", playerid, 1 );
return 1; return 1;
} }
CMD:faq( playerid, params[ ] ) { CMD:faq( playerid, params[ ] ) {

View File

@ -4826,6 +4826,8 @@ public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
// ShowPlayerDialog( playerid, DIALOG_SPAWN_CITY, DIALOG_STYLE_LIST, "{FFFFFF}Select Spawning City", "San Fierro\nLas Venturas\nLos Santos\nRandom City", "Select", "" ); // ShowPlayerDialog( playerid, DIALOG_SPAWN_CITY, DIALOG_STYLE_LIST, "{FFFFFF}Select Spawning City", "San Fierro\nLas Venturas\nLos Santos\nRandom City", "Select", "" );
SendServerMessage( playerid, "Your job has been set to %s. you can change it at the City Hall for "COL_GOLD"$5,000"COL_WHITE".", GetJobName( p_Job{ playerid } ) ); SendServerMessage( playerid, "Your job has been set to %s. you can change it at the City Hall for "COL_GOLD"$5,000"COL_WHITE".", GetJobName( p_Job{ playerid } ) );
DisplayFeatures( playerid );
} }
else else
{ {