SA-MP Forums Archive
Little question about 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: Little question about mselection (/showthread.php?tid=445841)



Little question about mselection - Lops - 23.06.2013

I have question about mselection model preview.
How could i make that, if i select/choose the vehicle from model preview in IG, then it gives me right vehicle name and the vehicle price.

Maybe someone knows that?


Re: Little question about mselection - Lops - 24.06.2013

Maybe someone can help?


Re: Little question about mselection - Lops - 28.06.2013

No one?


Re: Little question about mselection - MP2 - 28.06.2013

Not when you bump every 5 minutes. 24 hours.


Re: Little question about mselection - Guest123 - 28.06.2013

pawn Код:
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
    if(listid == gunlist)
    {
        if(response)
        {
            switch(modelid)
            {
                case 331:
                {
                if (GetPlayerMoney(playerid) <2000) return SendClientMessage(playerid,-1,"You do not have enough cash");
                GivePlayerWeapon(playerid, 1, AMMO);
                }
            }
            SendClientMessage(playerid, 0x33AA33AA, "The weapon is selected!");
        }
        else SendClientMessage(playerid, 0xFF0000FF, "You cancelled a weapon choice!");
        return 1;
    }
    return 1;
}