[FilterScript] Sly's Weapon Shop
#10

pawn Код:
/*
Title :- Weapon Shop v1.0
Author :- Sly (GShock)
SA-MP forum :- http://forum.sa-mp.com/member.php?u=212767
Script link :- http://pastebin.com/VU2cMphQ
*/

 
 
 
 
 
#include <a_samp>
#include <zcmd>
 
#define DIALOG_WEAPON 69    /* ( Change this ID if your gamemode already has a dialog with this ID) */
 
 
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
        if(dialogid == DIALOG_WEAPON)
            {
            if(response)
            {
                    switch(listitem)
                    {
                            case 0: ShowPlayerDialog(playerid, 70, DIALOG_STYLE_LIST, "Melee", "Brass Knuckles\nGolf Club\nNightstick\nKnife\nBaseball Bat\nShovel\nPool Cue\nKatana\nChainsaw", "Go", "Exit");
                            case 1: ShowPlayerDialog(playerid, 71, DIALOG_STYLE_LIST, "Pistols", "9mm\nSilenced 9mm\nDesert Eagle", "Go", "Exit");
                            case 2: ShowPlayerDialog(playerid, 72, DIALOG_STYLE_LIST, "Shotguns", "Shotgun\nSawnoff Shotgun\nCombat Shotgun", "Go", "Exit");
                            case 3: ShowPlayerDialog(playerid, 73, DIALOG_STYLE_LIST, "Sub Machines", "Uzi\nMP5\nTec-9", "Go", "Exit");
                            case 4: ShowPlayerDialog(playerid, 74, DIALOG_STYLE_LIST, "Rifles", "AK-47\nM4\nCountry Rifle\nSniper Rifle", "Go", "Exit");
                            case 5: ShowPlayerDialog(playerid, 75, DIALOG_STYLE_LIST, "Thrown", "Tear Gas\nMolotov Cocktail", "Go", "Exit");
                            case 6: ShowPlayerDialog(playerid, 76, DIALOG_STYLE_LIST, "Other", "Fire Extinguisher\nCamera", "Go", "Exit");
                    }
            }
    }
        return 1;
}
 
CMD:weaponshop(playerid, params[])
{
    ShowPlayerDialog(playerid, DIALOG_WEAPON, DIALOG_STYLE_LIST, "{00ff00}Weapon Shop by Sly", "Melee\nPistols\nShotguns\nSub Machines\nRifles\nThrown\nOther", "Next", "Exit");
        SendClientMessage(playerid , -1 ,"This script it brought to you by Sly! (GShock)");
        return 1;
}
Using chrome and Ctrl + F: GivePlayerWeapon searched and no result found.

How come this even gives weapons when you don't even use GivePlayerWeapon!

And the users rating
Quote:

Nice, good ....

Please read the code first.
Reply


Messages In This Thread
Sly's Weapon Shop - by GShock - 24.04.2015, 07:48
Re: Sly's Weapon Shop - by Kapersky™ - 24.04.2015, 07:53
Re: Sly's Weapon Shop - by Jakwob - 24.04.2015, 07:57
Re: Sly's Weapon Shop - by Smileys - 24.04.2015, 08:31
Re: Sly's Weapon Shop - by GShock - 29.04.2015, 11:57
Re: Sly's Weapon Shop - by shadowstorm - 29.04.2015, 18:26
Re: Sly's Weapon Shop - by dionisak0s - 29.04.2015, 18:59
Re: Sly's Weapon Shop - by GShock - 30.04.2015, 03:51
Re: Sly's Weapon Shop - by Ghazal - 30.04.2015, 05:18
Re: Sly's Weapon Shop - by Gammix - 30.04.2015, 05:32

Forum Jump:


Users browsing this thread: 1 Guest(s)