Can somebody?Plaseee REP+ !
#1

The all Script Request Thread are locked :S that why i post here

Hii!
Can somebody make me a dialog like:
when i /invite somebody to show a dialog to asko you want to join the organisation?if you want click YES if you dont want click No.Please REP+ !!!! PLEASEPLEASE PLEAAAAAAASEEEEEEEEEEEEE :S


Here is the /invite

pawn Код:
//----------------------------------[INVITE]------------------------------------------------
    if(strcmp(cmd, "/invite", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]");
                return 1;
            }
            new para1;
            new ftext[20];
            para1 = ReturnUser(tmp);
            if (PlayerInfo[playerid][pLeader] >= 1)
            {
                if(IsPlayerConnected(para1))
                {
                    if(para1 != INVALID_PLAYER_ID)
                    {
                            if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "PD"; ChosenSkin[para1] = 282; SetPlayerSkin(para1, 282); }
                            else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "MBI"; ChosenSkin[para1] = 24; SetPlayerSkin(para1, 24); }
                            else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "ARM"; ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285); }
                            else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "MD-Bolnica"; ChosenSkin[para1] = 284; SetPlayerSkin(para1, 276); }
                            else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "La Cosa Nostra"; ChosenSkin[para1] = 121; SetPlayerSkin(para1, 121); }
                            else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yakuza"; ChosenSkin[para1] = 112; SetPlayerSkin(para1, 112); }
                            else if(PlayerInfo[playerid][pLeader] == 7) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Vlada"; ChosenSkin[para1] = 20; SetPlayerSkin(para1, 164); }
                            else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman"; ChosenSkin[para1] = 20; SetPlayerSkin(para1, 20); }
                            else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Kanal 7"; ChosenSkin[para1] = 1; SetPlayerSkin(para1, 1); }
                            else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi "; ChosenSkin[para1] = 210; SetPlayerSkin(para1, 210); }
                            else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Obezbeduvanje"; ChosenSkin[para1] = 6; SetPlayerSkin(para1, 6); }
                            else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Los Santos Gang"; ChosenSkin[para1] = 103; SetPlayerSkin(para1, 103); }
                            else if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "GSF"; ChosenSkin[para1] = 175; SetPlayerSkin(para1, 175); }
                            else if(PlayerInfo[playerid][pLeader] == 14) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Carbon Racer's"; ChosenSkin[para1] = 23; SetPlayerSkin(para1, 23); }
                            else if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Groove Street"; ChosenSkin[para1] = 105; SetPlayerSkin(para1, 105); }
                            else if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "LSV"; ChosenSkin[para1] = 108; SetPlayerSkin(para1, 108); }
                            else { return 1; }
                            GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
                            PlayerInfo[para1][pRank] = 1;
                            printf("AdmCmd: %s Go prikluci %s za vlez vo %s.", sendername, giveplayer, ftext);
                            format(string, sizeof(string), "   Se priklucivte vo %s, pokaneti ste od lider %s", ftext, sendername);
                            SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                            format(string, sizeof(string), "   Go pokanivte %s vo %s.", giveplayer,ftext);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                        }
                        else
                        {
                    }
                }//not connected
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "  {FF0000}GRESKA:{FFFFFF}Nemozete da ja koristite ovaa komanda samo Lideri.");
            }
        }
        return 1;
    }

PLASEEEEEEEEEEE IF YOU ARE THE BEST
Reply
#2

U Should watch tutorials,
Loads of tutorials about dialogs..
Reply
#3

i have make one but is no working :S can you make me one please :S
Reply
#4

Why can't you say it's about a dialog in the title? Nobody will help you when YOURE BEING A FUCKING RETARD WITH SHIT TITLES WHY DONT U PEOPLE LEARN AND DONT PUT FKING REP++ IN THE TITLE.

God dammit.
Reply
#5

Quote:
Originally Posted by Sinner
Посмотреть сообщение
Why can't you say it's about a dialog in the title? Nobody will help you when YOURE BEING A FUCKING RETARD WITH SHIT TITLES WHY DONT U PEOPLE LEARN AND DONT PUT FKING REP++ IN THE TITLE.

God dammit.
True story bro.
Reply
#6

Here you go:
https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog

Dont bother us again with ur title.

Dont excpect people create dialogs for you.
We are not like slaves here on the forums..
Reply
#7

you should add a variables to.
Reply
#8

pawn Код:
new string[100];
format(string,sizeof(string),"You have been invited bu %d",playerid);
ShowPlayerDialog(para1,1489,DIALOG_STYLE_MSGBOX,"Invite",string,"OK","Cancel");

//Under OnDialogResponse
if(dialogid == 1489)  {
  if(!response)  {
  //They rejected  
 }
 if(response)
  { //Accepted
  }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)