How to Respawn Dialog
#9

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new string[400], _tmpstring[256], INI:file, filename[WEAPONSHOP], h = GetPVarInt(playerid, "LastCp"), amount =      floatround(strval(inputtext));
    format(filename, sizeof(filename), FILEPATH, h);
    if(dialogid == WEAPONSHOP && response)
    {
        switch(listitem)
        {
            case 0: SetPlayerHealth(playerid,100);
            case 1: SetPlayerArmour(playerid,100);
            case 2: GivePlayerWeapon(playerid,31,1000);
            case 3: GivePlayerWeapon(playerid,34,1000);
            case 4: GivePlayerWeapon(playerid,26,1000);
            case 5: GivePlayerWeapon(playerid,28,1000);
            case 6: GivePlayerWeapon(playerid,24,1000);
        }
        ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "Weapon Shop", "Health\nArmour\netc...", "Buy", "Cancel");
        return 1;
    }
Reply


Messages In This Thread
How to Respawn Dialog - by Youtube12 - 15.07.2012, 22:52
Re: How to Respawn Dialog - by Toreno - 15.07.2012, 22:54
AW: How to Respawn Dialog - by Youtube12 - 15.07.2012, 23:42
Re: How to Respawn Dialog - by [MM]RoXoR[FS] - 16.07.2012, 03:15
AW: Re: How to Respawn Dialog - by Youtube12 - 16.07.2012, 11:38
Re: AW: Re: How to Respawn Dialog - by [MM]RoXoR[FS] - 16.07.2012, 11:44
AW: Re: AW: Re: How to Respawn Dialog - by Youtube12 - 16.07.2012, 12:07
Re: How to Respawn Dialog - by [MM]RoXoR[FS] - 16.07.2012, 12:20
Re: How to Respawn Dialog - by Andi_Evandy - 16.07.2012, 12:28
AW: Re: How to Respawn Dialog - by Youtube12 - 16.07.2012, 12:33

Forum Jump:


Users browsing this thread: 3 Guest(s)