New Dialog
#2

pawn Код:
if(dialogid == 2)// They pressed the first button.
    {
        if(response)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
        {
            switch(listitem)
            {
                case 0:// Mafias
            {
                    SetPlayerSkin(playerid,x);
                    GivePlayerWeapon(playerid,x,9999);
                    GivePlayerWeapon(playerid,x,9999);
                    GivePlayerWeapon(playerid,x,9999);
                    SetPlayerPos(playerid,x,y,z);
            }
                case 1: // Triads
            {
                    SetPlayerSkin(playerid,x);
                    GivePlayerWeapon(playerid,x,9999);
                    GivePlayerWeapon(playerid,x,9999);
                    GivePlayerWeapon(playerid,x,9999);
                    SetPlayerPos(playerid,x,y,z);
            }
                case 2: // Russian Mafia
            {
                   SetPlayerSkin(playerid,x);
                   GivePlayerWeapon(playerid,x,9999);
                   GivePlayerWeapon(playerid,x,9999);
                   GivePlayerWeapon(playerid,x,9999);
                   SetPlayerPos(playerid,x,y,z);
            }
                case 3://Italian Mafia
            {
                   SetPlayerPos(playerid,x,y,z);
                   SetPlayerSkin(playerid,x);
                   GivePlayerWeapon(playerid,x,9999);
                   GivePlayerWeapon(playerid,x,9999);
                   GivePlayerWeapon(playerid,x,9999);
            }
        }
        return 1;
    }
}
Change the "x" to the weapon ID's you want for the team. Also change "x,y,z" to the co-ordinates where you want the team to spawn.

Change

pawn Код:
if (strcmp("/mafia", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Mafias", "Triads \nRussian Mafia \nItalian Mafia", "OK","Cancel");
        return 1;
    }
and replace it with this

pawn Код:
if (strcmp("/mafia", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Mafias", "Triads \nRussian Mafia \nItalian Mafia", "OK","Cancel");
        return 1;
    }
If you need any more help, send me your Teamviewer ID and pass and I will fix it for you. You can also speak to me in my Teamspeak server on this IP: 63.143.45.104
Reply


Messages In This Thread
New Dialog - by DJRebis - 25.06.2013, 11:45
Re: New Dialog - by Josh_Main - 25.06.2013, 12:01
Re: New Dialog - by DJRebis - 25.06.2013, 12:36
Re: New Dialog - by dEcooR - 25.06.2013, 12:42
Re: New Dialog - by DJRebis - 25.06.2013, 12:54

Forum Jump:


Users browsing this thread: 1 Guest(s)