SA-MP Forums Archive
[FilterScript] G-Gunz - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] G-Gunz (/showthread.php?tid=390990)



G-Gunz - Glad2BeHere - 09.11.2012

What to expect in the version; Ability to type in names and get the weapon or probably not another version

WHY DID U MAKE ANOTHER WEAPON DIALOG SHIT THERE ALOT OF THESE, BUT THERE NONE LIKE THESE, THAT I SEEN
Код:
http://imageshack.us/a/img10/3861/samp060od.png

http://imageshack.us/a/img266/6533/samp052lh.png

http://imageshack.us/a/img267/6852/samp053yw.png

http://imageshack.us/a/img502/8593/samp054rg.png

http://imageshack.us/a/img32/5310/samp055of.png

http://imageshack.us/a/img40/5980/samp056g.png

http://imageshack.us/a/img651/2909/samp057rz.png

http://imageshack.us/a/img835/2593/samp058yo.png

http://imageshack.us/a/img832/6560/samp059wb.png
CODE RAW: JUST PUT IN A EMPTY PAWN compile put in ur gm or fs folder and thats it ur done

pawn Код:
#include <a_samp>

#define weapons 1
#define wlist 2
#define wmenu 3
#define ammo 4

#define COLOR_GREEN 0x00820FAA
#define COLOR_GREY 0xAFAFAFFF
#define COLOR_RED 0xFF0000AA

new pGun[MAX_PLAYERS];
new pAmmo[MAX_PLAYERS];

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/gwepz", cmdtext, true, 10) == 0)
    {
     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED,"OWNER ONLY");
     {
        ShowPlayerDialog(playerid, wmenu, DIALOG_STYLE_LIST, "Weapons", "{9900FF}Weapon IDS\n{66FF00}Choose Weapon", "Choose", "Close");
     }
     return 1;
    }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == wmenu)
    {
        if(response)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, wlist, DIALOG_STYLE_MSGBOX, "Weapons", "{CCFF00}PRINT ME, PRINT ME!", "Print", "Close");
            }
            if(listitem == 1)
            {
                ShowPlayerDialog(playerid,weapons, DIALOG_STYLE_INPUT, "Weapons", "Choose Your Gun", "Load Gun", "Cancel");
            }

        }
        return 1;
    }
    if(dialogid == weapons)
    {
        if(response)
        {
        ShowPlayerDialog(playerid,ammo, DIALOG_STYLE_INPUT, "Weapons", "How Much Ammo", "Rounds", "Cancel");
        pGun[playerid] = strval(inputtext);
        }
        return 1;
    }
    if(dialogid == ammo)
    {
        if(response)
        {
        pAmmo[playerid] = strval(inputtext);
        GivePlayerWeapon(playerid, pGun[playerid],pAmmo[playerid]);
        pGun[playerid] = 0;
        pAmmo[playerid] = 0;
        }
        return 1;
    }
    if(dialogid == wlist)
    {
        if(response)
        {
        SendClientMessage(playerid, COLOR_GREY, "_______________________________________");
        SendClientMessage(playerid, COLOR_GREEN, "1: Brass Knuckles 2: Golf Club 3: Nite Stick 4: Knife 5: Baseball Bat 6: Shovel 7: Pool Cue 8: Katana 9: Chainsaw");
        SendClientMessage(playerid, COLOR_GREEN, "10: Purple Dildo 11: Small White Vibrator 12: Large White Vibrator 13: Silver Vibrator 14: Flowers 15: Cane 16: Frag Grenade");
        SendClientMessage(playerid, COLOR_GREEN, "17: Tear Gas 18: Molotov Cocktail 19: Vehicle Missile 20: Hydra Flare 21: Jetpack 22: 9mm 23: Silenced 9mm 24: Desert Eagle 25: Shotgun");
        SendClientMessage(playerid, COLOR_GREEN, "26: Sawnoff Shotgun 27: SPAS-12 28: Micro SMG (Mac 10) 29: SMG (MP5) 30: AK-47 31: M4 32: Tec9 33: Rifle");
        SendClientMessage(playerid, COLOR_GREEN, "25: Shotgun 34: Sniper Rifle 35: Rocket Launcher 36: HS Rocket Launcher 37: Flamethrower 38: Minigun 39: Satchel Charge");
        SendClientMessage(playerid, COLOR_GREEN, "40: Detonator 41: Spraycan 42: Fire Extinguisher 43: Camera 44: Nightvision Goggles 45: Infared Goggles 46: Parachute");
        SendClientMessage(playerid, COLOR_GREY, "_______________________________________");
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, "Hope you Memorized it.");
        }
        return 1;
    }
    return 0;
}



Re: G-Gunz - Team_PRO - 09.11.2012

I Change My Mind Simple But Too Maby Weapon Spawner Now


Re: G-Gunz - willsuckformoney - 09.11.2012

Expected something.. different.


Re: G-Gunz - Bob Bubba - 09.11.2012

Boring...


Re: G-Gunz - Glad2BeHere - 09.11.2012

easy weapon using system, just put in ur weaponid and ammo and u get ur gun itz kwl and simple and nice 2 use

-defending my reasons


Re: G-Gunz - Astralis - 10.11.2012

Should have been more weapons.


Re: G-Gunz - JaKe Elite - 10.11.2012



Just like i expected...


Re: G-Gunz - Plovix - 10.11.2012

Nice and simple FS.


Re: G-Gunz - Glad2BeHere - 10.11.2012

Quote:
Originally Posted by Neonman
Посмотреть сообщение
Should have been more weapons.
REALLY more weapons :/ how many more all weapons are there