05.09.2012, 16:27
pawn Код:
ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Greeting","Welcome Back To Las Ventruas Roleplay \n Current Money: \n Current Health: \n Current Armour: \n"COL_GREEN"","Ok","");
ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Greeting","Welcome Back To Las Ventruas Roleplay \n Current Money: \n Current Health: \n Current Armour: \n"COL_GREEN"","Ok","");
pawn Код:
|
new szStr[ 128 ];
new Float:PlayerHP, Float:PlayerArmour; // declaring new float vars to save the player's health in
GetPlayerHealth( playerid, PlayerHP ); // getting players health
GetPlayerArmour( playerid, PlayerArmour); // getting players armour
format( szStr, sizeof( szStr ), "Health: %0.f\n\nArmour: %0.f\n\nMoney: %d", PlayerHP, PlayerArmour, GetPlayerMoney( playerid ) ); //formating szStr so we can show our requirements
ShowPlayerDialog( playerid, YOUR_DIALOG_ID, DIALOG_STYLE_MSGBOX, "Stats", szStr, "Okay", "" ); // put szStr as an info to show to the player