Merged in features-on-acc-creation (pull request #50)

adds features dialog on account creation
This commit is contained in:
Damen DeBerry 2019-01-12 08:46:55 +00:00 committed by Lorenc Pekaj
commit 936ec548c7
2 changed files with 8 additions and 1 deletions

View File

@ -22,9 +22,14 @@ CMD:help( playerid, params[ ] ) {
}
CMD:features( playerid, params[ ] ) {
return DisplayFeatures( playerid );
}
stock DisplayFeatures( playerid )
{
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 );
return 1;
return 1;
}
CMD:faq( playerid, params[ ] ) {

View File

@ -4827,6 +4827,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", "" );
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
{