Dialog Bug (click)
#4

pawn Код:
if(dialogid == T-DM)
    {
    if(response)
    {
      if(listitim == 0)
        {
            PlayerDm[playerid] = 1;
            SendClientMessage(playerid, 0x33AA33AA, "You chose Terrorists.");
            TogglePlayerControllable(playerid,0);
            SetTimer("UnFreezePlayer", 10000, true);
            ShowPlayerDialog(playerid, DIALOG_WEAPON, DIALOG_STYLE_LIST, "[-----Weapon Spawner-----]", "Knife\nBat\nChainsaw\nPistol\nDeagle\nShotgun\nMicroUzi", "Take", "Close");
            SetPlayerHealth(playerid, 99999999);
            new str[128];
            GetPlayerName(playerid, str, sizeof(str));
            format(str, sizeof(str), "{FF8000} %s{C0C0C0} has choose {FF8000}terorrist class", str);
            SendClientMessageToAll(0xFFFF00AA, str);
            SetTimerEx("UnFreezePlayer",10000,0,"i",playerid);
            SetPlayerArmour(playerid, 99999999);//antispawnkill
            SetPlayerColor(playerid,COLOR_RED);
            SetPlayerTeam(playerid, 1);
            SetPlayerSkin(playerid,79);
            SetPlayerPos(playerid, 1323.5071,5061.0566,125.9839);
            }
            else if(listitim == 1)
            {
             PlayerDm[playerid] = 1;
             SendClientMessage(playerid, 0x33AA33AA, "You chose Counter-Terrorists.");
             SetPlayerHealth(playerid, 99999999);
             SetTimerEx("UnFreezePlayer",10000,0,"i",playerid);
             SetPlayerColor(playerid,COLOR_GILE);
             TogglePlayerControllable(playerid,0);
             new str[128];
             GetPlayerName(playerid, str, sizeof(str));
             format(str, sizeof(str), "{FF8000} %s{C0C0C0} has choose {FF8000} counter-terorrist class", str);
             SendClientMessageToAll(0xFFFF00AA, str);
             ShowPlayerDialog(playerid, DIALOG_WEAPON, DIALOG_STYLE_LIST, "[-----Weapon Spawner-----]", "Knife\nBat\nChainsaw\nPistol\nDeagle\nShotgun\nMicroUzi", "Take", "Close");
             SetPlayerArmour(playerid, 999999999);//anti spawnkill
             SetPlayerTeam(playerid, 2);
             SetPlayerSkin(playerid,285);
             SetPlayerPos(playerid, 1141.2019,5070.8477,125.7839);
            }
        }
    }
try this, if it work tell me, and if it didn't also tell me
i will try another way if it didn't work
Reply


Messages In This Thread
Dialog Bug (click) - by Guest123 - 11.05.2013, 07:09
Re: Dialog Bug (click) - by GoldZoroGrab - 11.05.2013, 07:12
Re: Dialog Bug (click) - by Guest123 - 11.05.2013, 07:16
Re: Dialog Bug (click) - by GoldZoroGrab - 11.05.2013, 07:41

Forum Jump:


Users browsing this thread: 1 Guest(s)