Forum

> > CS2D > Scripts > Shop easy customization.
Forums overviewCS2D overview Scripts overviewLog in to reply

English Shop easy customization.

4 replies
To the start Previous 1 Next To the start

old Shop easy customization.

Man Of Steel
User Off Offline

Quote
Hi everyone,
I need some help about Shop easy customization script and i'm sure anybody will help me.

I found bug in Shop easy customization script, bug like that when we say !shop so shop open but !shop msg show on chat maybe scripter forgot to add return 1 i tried to add return 1 value but i failed please tell me where i put it so that msg will not show on chat?

and i want more features on it like when anybody buy something so msg will show what he's bought. example if he buy m3 so msg show
: [Server] You Bought a {weapon name}

file cs2d Shop Script - Easy customization

please help me

old Re: Shop easy customization.

Gaios
Reviewer Off Offline

Quote
Edit lines ~217:
1
2
3
4
5
6
7
8
if button <= 6 then --If one of the 6 buttons is the one pressed then
    if playerData[id].points >= price then --If the players money is more than the price then
        items[index].OnBuy(id) --Do what the items gives
        SetPoints(id, playerData[id].points-price) --Take the players money
    else
        msg2(id, "©"..settings.noMoneyColor..settings.noMoneyText) --Message if the player dont have enough money
    end
end
To:
1
2
3
4
5
6
7
8
9
if button <= 6 then --If one of the 6 buttons is the one pressed then
    if playerData[id].points >= price then --If the players money is more than the price then
        items[index].OnBuy(id) --Do what the items gives
        SetPoints(id, playerData[id].points-price) --Take the players money
        msg2(id, "©000255000You bought a ©255255255"..items[index].name)
    else
        msg2(id, "©"..settings.noMoneyColor..settings.noMoneyText) --Message if the player dont have enough money
    end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview