SA-MP Forums Archive
[HELP] mSelection - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] mSelection (/showthread.php?tid=510632)



[HELP] mSelection - V4at - 01.05.2014

When I click on any of buttons then he doesn't responds, nothing happens, the same screen.

Where can be problem?


Re: [HELP] mSelection - AphexCCFC - 01.05.2014

Major lack of explanation. Post your code and explain the problem in more of an understandable way. How can we help from the little information you have provided? <.<


Re: [HELP] mSelection - V4at - 01.05.2014

pawn Код:
#include <a_samp>
#include <mSelection>

//--------------------------[Defines]-----------------------------------------
#define DIALOG_BG_COLOR 0x4A5A6BBB
#define PREV_BG_COLOR 0x88888899
#define PREV_BG_COLOR2 0xFFFF00AA
#define AMMO 100
//------------------------------------------------------------------------------

new gunlist = mS_INVALID_LISTID;

public OnFilterScriptInit()
{
    gunlist = LoadModelSelectionMenu("gun.txt");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/gunlist", true) == 0)
    {
        ShowModelSelectionMenu(playerid, gunlist, "Select Gun", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2); // Показываем игроку меню с выбором оружия.
        return 1;
    }
    return 0;
}

public OnPlayerModelSelection(playerid, response, listid, modelid)
{
    if(listid == gunlist)
    {
        if(response)
        {
            switch(modelid)
            {
                case 331: GivePlayerWeapon(playerid, 1, AMMO); // Brass Knuckles
                case 333: GivePlayerWeapon(playerid, 2, AMMO); // Golf Club
                case 334: GivePlayerWeapon(playerid, 3, AMMO); // Nightstick
                case 335: GivePlayerWeapon(playerid, 4, AMMO); // Knife
                case 336: GivePlayerWeapon(playerid, 5, AMMO); // Baseball Bat
                case 337: GivePlayerWeapon(playerid, 6, AMMO); // Shovel
                case 338: GivePlayerWeapon(playerid, 7, AMMO); // Pool Cue
                case 339: GivePlayerWeapon(playerid, 8, AMMO); // Katana
                case 341: GivePlayerWeapon(playerid, 9, AMMO); // Chainsaw
                case 321: GivePlayerWeapon(playerid, 10, AMMO); // Double-ended Dildo
                case 325: GivePlayerWeapon(playerid, 14, AMMO); // Flowers
                case 326: GivePlayerWeapon(playerid, 15, AMMO); // Cane
                case 342: GivePlayerWeapon(playerid, 16, AMMO); // Grenade
                case 343: GivePlayerWeapon(playerid, 17, AMMO); // Tear Gas
                case 344: GivePlayerWeapon(playerid, 18, AMMO); // Molotov Cocktail
                case 346: GivePlayerWeapon(playerid, 22, AMMO); // 9mm
                case 347: GivePlayerWeapon(playerid, 23, AMMO); // Silenced 9mm
                case 348: GivePlayerWeapon(playerid, 24, AMMO); // Desert Eagle
                case 349: GivePlayerWeapon(playerid, 25, AMMO); // Shotgun
                case 350: GivePlayerWeapon(playerid, 26, AMMO); // Sawnoff
                case 351: GivePlayerWeapon(playerid, 27, AMMO); // Combat Shotgun
                case 352: GivePlayerWeapon(playerid, 28, AMMO); // Micro SMG/Uzi
                case 353: GivePlayerWeapon(playerid, 29, AMMO); // MP5
                case 355: GivePlayerWeapon(playerid, 30, AMMO); // AK-47
                case 356: GivePlayerWeapon(playerid, 31, AMMO); // M4
                case 372: GivePlayerWeapon(playerid, 32, AMMO); // Tec-9
                case 357: GivePlayerWeapon(playerid, 33, AMMO); // Country Rifle
                case 358: GivePlayerWeapon(playerid, 34, AMMO); // Sniper Rifle
                case 359: GivePlayerWeapon(playerid, 35, AMMO); // RPG
                case 360: GivePlayerWeapon(playerid, 36, AMMO); // HS Rocket
                case 361: GivePlayerWeapon(playerid, 37, AMMO); // Flamethrower
                case 362: GivePlayerWeapon(playerid, 38, AMMO); // Minigun
                case 363: { GivePlayerWeapon(playerid, 39, AMMO); GivePlayerWeapon(playerid, 40, 1); }// Satchel Charge + Detonator
                case 365: GivePlayerWeapon(playerid, 41, AMMO); // Spraycan
                case 366: GivePlayerWeapon(playerid, 42, AMMO); // Fire Extinguisher
            }
            SendClientMessage(playerid, 0x33AA33AA, "The weapon is selected!");
        }
        else SendClientMessage(playerid, 0xFF0000FF, "You cancelled a weapon choice!");
        return 1;
    }
    return 1;
}
pawn Код:
#include <a_samp>
#include <mSelection>


new skinlist = mS_INVALID_LISTID;
public OnFilterScriptInit()
{
    skinlist = LoadModelSelectionMenu("skins.txt");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/changeskin", true) == 0)
    {
        ShowModelSelectionMenu(playerid, skinlist, "Select Skin");
        return 1;
    }
    return 0;
}

public OnPlayerModelSelection(playerid, response, listid, modelid)
{
    if(listid == skinlist)
    {
        if(response)
        {
            SendClientMessage(playerid, 0xFF0000FF, "Skin Changed");
            SetPlayerSkin(playerid, modelid);
        }
        else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
        return 1;
    }
    return 1;
}



Re: [HELP] mSelection - V4at - 02.05.2014

Hey guys, this is just these scripts:

https://sampforum.blast.hk/showthread.php?tid=407045
https://sampforum.blast.hk/showthread.php?tid=412066

And I don't know why for me it doesn't respond when I'm clicking.


Re: [HELP] mSelection - EpicMan - 02.05.2014

Your mselection.inc is not good i recommend you to download another.


Re: [HELP] mSelection - V4at - 02.05.2014

I'm using 1.1 R2, but maybe someone can give me 1.1 R3 ? And I'll try then :/


Re: [HELP] mSelection - V4at - 03.05.2014

Bump


Re: [HELP] mSelection - Fred1993 - 19.05.2014

Its also not working for me , can anyone help please ?
from where can i download the new mselection.inc ?