SA-MP Forums Archive
Can You Make A Weapon Spawner With Textdraw ? like 0.3x car spawner - 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: Can You Make A Weapon Spawner With Textdraw ? like 0.3x car spawner (/showthread.php?tid=417652)



Can You Make A Weapon Spawner With Textdraw ? like 0.3x car spawner - Fitri - 22.02.2013

any suggestion post here
=====================================



Re: Can You Make A Weapon Spawner With Textdraw ? like 0.3x car spawner - RajatPawar - 22.02.2013

They are called Model previews. It is easy to make using Doefl0r's mSelection include. ****** it.
Example script:
pawn Код:
#include <a_samp>
#include <mSelection>

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

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/weapons", true) == 0)
    {
        ShowModelSelectionMenu(playerid, weplist, "->Weapons<-");
        return 1;
    }
    return 0;
}

public OnPlayerModelSelection(playerid, response, listid, modelid)
{
    if(listid == weplist)
    {
        if(response)
        {
            SendClientMessage(playerid, 0xFF0000FF, "Chosen a weapon.");
        }
        else SendClientMessage(playerid, 0xFF0000FF, "Canceled selection");
        return 1;
    }
    return 1;
}
You will need to make a 'weapons.txt' file in your scriptfiles. Read the mSelection topic here to know about it.
You can find the weapon object ids here. They start from 331.


ME:Why I Choose the weapon but it not spawned - Fitri - 01.03.2013

Why I Choose the weapon but it not spawned ?


Re: Can You Make A Weapon Spawner With Textdraw ? like 0.3x car spawner - RajatPawar - 01.03.2013

Did you even read through the script I gave you AS AN EXAMPLE? I expected you to build upon it.


Re: Can You Make A Weapon Spawner With Textdraw ? like 0.3x car spawner - Fitri - 01.03.2013

can you make it for me ? please


Re: Can You Make A Weapon Spawner With Textdraw ? like 0.3x car spawner - freeze98 - 04.10.2014

even if you make it, it won't show the pic of the weapon


Re: Can You Make A Weapon Spawner With Textdraw ? like 0.3x car spawner - Eth - 04.10.2014

Nice job bumping a one year old topic.