SA-MP Forums Archive
Cookieshop - 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: Cookieshop (/showthread.php?tid=343825)



Cookieshop - muio223 - 19.05.2012

How can i make a shop with the cookie fs so that it has items like Full weapon set, Neon command access, 150k?


Re: Cookieshop - SnG.Scot_MisCuDI - 19.05.2012

No code, no help.


Re: Cookieshop - muio223 - 19.05.2012

pawn Код:
CMD:trade(playerid, params[])
{
    if(!IsPlayerInRangeOfPoint(playerid,20.0,-103.9105,-22.3268,1000.7188))
    {
        SendClientMessageEx(playerid, COLOR_GRAD2, "   You are not at the Cookie shop!");
        return 1;
    }
    ShowPlayerDialog(playerid, SHOPMENU, DIALOG_STYLE_LIST, "Cookie Shop", "Neon        50\nWeapon set      10\n    $500", "Buy", "Cancel");
    return 1;
}
Like that


Re: Cookieshop - iGetty - 19.05.2012

Please wrap [pawn.] [/pawn] tags around, without the ".".


Re: Cookieshop - muio223 - 19.05.2012

Fixed Code for post just need help making it for zcmd!


Re: Cookieshop - Pizzy - 19.05.2012

Quote:
Originally Posted by muio223
Посмотреть сообщение
Fixed Code for post just need help making it for zcmd!
To me it already looks like ZCMD??


Re: Cookieshop - muio223 - 19.05.2012

I need the rest of the command i cant figure it out. I only got that far i need to find out how to add /neon command that you get when you buy neons from store and full weapon set and all that!


Re: Cookieshop - Flake. - 19.05.2012

like this?

pawn Код:
CMD:trade(playerid, params[])
{
    if(!IsPlayerInRangeOfPoint(playerid,20.0,-103.9105,-22.3268,1000.7188))
    {
        SendClientMessageEx(playerid, COLOR_GRAD2, "   You are not at the Cookie shop!");
        return 1;
    }
    ShowPlayerDialog(playerid, SHOPMENU, DIALOG_STYLE_LIST, "Cookie Shop", "Neon        50\nWeapon set      10\n    $500", "Buy", "Cancel");
    return 1;
}
then:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == SHOPMENU)
    {
       //add your stuff here
        return 1;
    }
    return 0;
}