how to Show in Dialog Menu??
#1

==> hey guys How can i show this cmd in dialog menu??

pawn Код:
CMD:ranks(playerid,params[])
{

 SendClientMessage(playerid,GREEN,"*Rookie : 0 Score");

 SendClientMessage(playerid,GREEN,"**Private : 150 Score");

 SendClientMessage(playerid,GREEN,"***Corporal : 250 Score");

 SendClientMessage(playerid,GREEN,"****Sergeant : 350 Score");

 SendClientMessage(playerid,GREEN,"*****Captain  : 500 Score");

 SendClientMessage(playerid,GREEN,"******Brigadier : 750 Score");

 SendClientMessage(playerid,GREEN,"*******General : 1200 Score");

 SendClientMessage(playerid,GREEN,"********Commander : 2000 Score");

 return 1;
}
Reply
#2

pawn Код:
ShowPlayerDialog(playerid,5648,DIALOG_STYLE_MSGBOX,"Rank List","*Rookie : 0 Score\n\
                                            **Private : 150 Score\n\
                                            ***Corporal : 250 Score\n\
                                            ****Sergeant : 350 Score\n\
                                            *****Captain  : 500 Score\n\
                                            ******Brigadier : 750 Score\n\
                                            *******General : 1200 Score\n\
                                            ********Commander : 2000 Score"
,"Ok","");
Reply
#3

Quote:
Originally Posted by iOmar
Посмотреть сообщение
==> hey guys How can i show this cmd in dialog menu??

pawn Код:
CMD:ranks(playerid,params[])
{

 SendClientMessage(playerid,GREEN,"*Rookie : 0 Score");

 SendClientMessage(playerid,GREEN,"**Private : 150 Score");

 SendClientMessage(playerid,GREEN,"***Corporal : 250 Score");

 SendClientMessage(playerid,GREEN,"****Sergeant : 350 Score");

 SendClientMessage(playerid,GREEN,"*****Captain  : 500 Score");

 SendClientMessage(playerid,GREEN,"******Brigadier : 750 Score");

 SendClientMessage(playerid,GREEN,"*******General : 1200 Score");

 SendClientMessage(playerid,GREEN,"********Commander : 2000 Score");

 return 1;
}
pawn Код:
ShowPlayerDialog(playerid,1337,DIALOG_STYLE_MSGBOX,"RANKS","*Rookie : 0 Score\n**Private : 150 Score\n***Corporal : 250 Score\n****Sergeant : 350 Score\n*****Captain  : 500 Score\n******Brigadier : 750 Score\n*******General : 1200 Score\n********Commander : 2000 Score","Close","");
If you want all ranks to be in green use this
pawn Код:
ShowPlayerDialog(playerid,1337,DIALOG_STYLE_MSGBOX,"RANKS","{008000}*Rookie : 0 Score\n**Private : 150 Score\n***Corporal : 250 Score\n****Sergeant : 350 Score\n*****Captain  : 500 Score\n******Brigadier : 750 Score\n*******General : 1200 Score\n********Commander : 2000 Score","Close","");
Reply
#4

Код:
CMD:ranks(playerid,params[])
{

ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"RANKS","{008000}*Rookie : 0 Score\n**Private : 150 Score\n***Corporal : 250 Score\n****Sergeant : 350 Score\n*****Captain  : 500 Score\n******Brigadier : 750 Score\n*******General : 1200 Score\n********Commander : 2000 Score","Close","");

 return 1;
}
this should work just change the 5 to what ever dialog you want

ops lil late
Reply
#5

as long as i remember
pawn Код:
ShowPlayerDialog(playerid, 12345, DIALOG_STYLE_MSGBOX, "*Rookie : 0 Score\n**Private : 150 Score\n***Corporal : 250 Score\n****Sergeant : 350 Score\n*****Captain  : 500 Score\n******Brigadier : 750 Score\n*******General : 1200 Score\n********Commander : 2000 Score", "OK" , "");
edit:well, late
Reply
#6

Quote:
Originally Posted by [Ez]Panther
Посмотреть сообщение
Код:
CMD:ranks(playerid,params[])
{

 ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"*Rookie : 0 Score");

 ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"**Private : 150 Score");

 ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"***Corporal : 250 Score");

 ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"****Sergeant : 350 Score");

 ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"*****Captain  : 500 Score");

 ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"******Brigadier : 750 Score");

 ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"*******General : 1200 Score");

 ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"********Commander : 2000 Score");

 return 1;
}
this should work just change the 5 to what ever dialog you want
WTF? You want to show 8 dialogs by one command? O.o
Reply
#7

Quote:
Originally Posted by Hoss
Посмотреть сообщение
WTF? You want to show 8 dialogs by one command? O.o
not really in my gamemode its on dialog response thats y i have so many lol but all diffrent :P

and mine gose from 1 to 8 witch is y i says to him just change the numbers to what ever he wants
Reply
#8

Quote:
Originally Posted by [Ez]Panther
Посмотреть сообщение
not really in my gamemode its on dialog response thats y i have so many lol but all diffrent :P

and mine gose from 1 to 8 witch is y i says to him just change the numbers to what ever he wants
that would not work !
if you mean open the dialgos in sequence like
Dialog ID: 1,2,3,4,5....
the last dialog will only open becosue it will oveflow the others !
Reply
#9

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
that would not work !
if you mean open the dialgos in sequence like
Dialog ID: 1,2,3,4,5....
the last dialog will only open becosue it will oveflow the others !
not on the same command like example not /help showplayerdialog(playerid,5 all on same command all diffrent commands i just used 5 from my gamemode again i did state change the dialog id
Reply
#10

Thnkx All (rep added. I wish you will also give me rep as gift )
Reply


Forum Jump:


Users browsing this thread: