Can You Make A Weapon Spawner With Textdraw ? like 0.3x car spawner
#1

any suggestion post here
=====================================
Reply
#2

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.
Reply
#3

Why I Choose the weapon but it not spawned ?
Reply
#4

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

can you make it for me ? please
Reply
#6

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

Nice job bumping a one year old topic.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)