Cookieshop
#1

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

No code, no help.
Reply
#3

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
Reply
#4

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

Fixed Code for post just need help making it for zcmd!
Reply
#6

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

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!
Reply
#8

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)