[FilterScript] G-Gunz
#1

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
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;
}
Reply
#2

I Change My Mind Simple But Too Maby Weapon Spawner Now
Reply
#3

Expected something.. different.
Reply
#4

Boring...
Reply
#5

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
Reply
#6

Should have been more weapons.
Reply
#7



Just like i expected...
Reply
#8

Nice and simple FS.
Reply
#9

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


Forum Jump:


Users browsing this thread: 2 Guest(s)