18.05.2014, 07:55
(
Последний раз редактировалось ball; 18.05.2014 в 10:20.
)
You have to save the player dialogid in the pvar while using command
You have to change all dialogs like that or you can hook ShowPlayerDialog.
@down - yes, you are right, my bad, edited.
Код:
CMD:rapid(playerid, params[]) { if(PlayerInfo[playerid][pFaction] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pFaction] == 17 || PlayerInfo[playerid][pLeader] == 17) { SetPVarInt(playerid, "dialog", RRMENU); ShowPlayerDialog(playerid, RRMENU, DIALOG_STYLE_LIST, "Rapid Recovery","Rapid Uniforms\nRapid Equipment\nRefill Health($1000)\nKevlar Vest($1000)\nMechanic Job", "Select", "Cancel"); } return 1; }
@down - yes, you are right, my bad, edited.