Is it possible to show this in dialog?
#1

pawn Код:
if(strcmp(cmd, "/commands", true) == 0 || strcmp(cmd, "/cmds", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
        SendClientMessage(playerid, COLOR_YELLOW2,"______________________________________________________________________________________________");
            SendClientMessage(playerid, COLOR_YELLOW2,"~ ACCOUNT ~ /rules /stats /removereminder /setreminder /reminder");
            SendClientMessage(playerid, COLOR_YELLOW2,"~ GENERAL ~ /dropdrugs /dropgun /tellmylocation /call /tie /blindfold /searchwallet /healme /attempt /(no)resist");
      if(PlayerInfo[playerid][pJob] == 1) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /find"); }
          else if(PlayerInfo[playerid][pJob] == 2) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /free"); }
          else if(PlayerInfo[playerid][pJob] == 3) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /sex"); }
          else if(PlayerInfo[playerid][pJob] == 4) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /buypot /buycrack /findpot /findcrack /givepot /givecrack"); }
          else if(PlayerInfo[playerid][pMember] == 9) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /live /news"); }
          else if(PlayerInfo[playerid][pJob] == 6) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /cookuniform /waiteruniform /showmenu"); }
          else if(PlayerInfo[playerid][pJob] == 7) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /paintcar /colorcar /repair /duty /tow /untow"); }
          else if(PlayerInfo[playerid][pJob] == 8) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /guard"); }
          else if(PlayerInfo[playerid][pJob] == 9) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /findguns /sellgun /sellmats"); }
          else if(PlayerInfo[playerid][pJob] == 10) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /sellcar"); }
          else if(PlayerInfo[playerid][pJob] == 12) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /fight /boxstats"); }
          else if(PlayerInfo[playerid][pJob] == 14) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /startroute"); }
          else if(PlayerInfo[playerid][pJob] == 17) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /sellicecream"); }
          else if(PlayerInfo[playerid][pJob] == 18) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /duty /heal"); }
          else if(PlayerInfo[playerid][pJob] == 19) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /fare"); }
          else if(PlayerInfo[playerid][pJob] == 20) {
          SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /startpizza /getpizza /givepizza"); }
            if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
            {
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "~ LSPD ~ /lspd(help)");
            }
            if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
            {
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "~ FBI ~ /fbi(help)");
            }
            if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
            {
                SendClientMessage(playerid, COLOR_YELLOW, "~ GL ~ /r(adio) /f(amily) /opengate /members /gate /lab /lift /lift2 /getarmed");
            }
            SendClientMessage(playerid, COLOR_YELLOW2,"~ OTHER ~ /jobhelp /bank(help) /cellphonehelp /househelp /renthelp /businesshelp /leaderhelp /language(help)");
        }
        return 1;
    }
Is it?
Reply
#2

Yes it is possible
Rather than SendClientMessage use ShowPlayerDialog
Reply
#3

Quote:
Originally Posted by Torran
Yes it is possible
Rather than SendClientMessage use ShowPlayerDialog
I dont understand...
Reply
#4

https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog
Reply
#5

Quote:
Originally Posted by Torran
That doesnt tell me nothing. That is totally different example on wikipedia.
Reply
#6

He sent you to the right place, if you don't understand that then you need to brush up on your basic coding skills.
Reply
#7

Quote:
Originally Posted by GhoulSlayeR
He sent you to the right place, if you don't understand that then you need to brush up on your basic coding skills.
Look, if you going to help me, then help, otherwise shut your mouth okay? Thank you.
Reply
#8

Quote:
Originally Posted by Torran
Yes it is possible
Rather than SendClientMessage use ShowPlayerDialog
Ohh, i guess you misunderstood my idea.

My idea was to get that in MSG BOX...
Reply
#9

Код:
if(strcmp(cmd, "/help", true) == 0 || strcmp(cmd, "/cmds", true) == 0 || strcmp(cmd, "/commands", true) == 0)
	{
	  ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "Help :", "anything u want , write it here", "Ok", "Cancel");
		return 1;
	}
________
THE GIRLS NEXT DOOR DICUSSION
Reply
#10

I am helping you, your being to ignorant to realize that were all trying to help you.

MSGBox is a Dialog Type, which goes into the function ShowPlayerDialog(); Which the link Torran gave you showed you how to do, it's simple fucktard.

https://sampwiki.blast.hk/wiki/ShowPlayerDialog.

He didn't misunderstand anything, you misunderstood everything.

Код:
// Define (On Top Of Script)
#define DSTATS 2000

// Copy & Replace
if(strcmp(cmd, "/commands", true) == 0 || strcmp(cmd, "/cmds", true) == 0)
{
  if(IsPlayerConnected(playerid))
  {
     new dstring[2048];
     format(dstring, sizeof(dstring), "/rules, /stats, other commands here");
     ShowPlayerDialog(playerid,DSTATS,DIALOG_STYLE_MSGBOX,"Stats",dstring,"Ok","Exit");
  }
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)