English Shop easy customization.

4 replies
Goto Page
To the start Previous 1 Next To the start
28.05.18 08:40:13 am
Up
Man Of Steel
User
Offline Off
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 (13)

please help me
FRiendly boYy.
28.05.18 12:13:17 pm
Up
Gaios
Security Supporter
Offline Off
Edit line 46:
addhook("say", "ChatCommands", 999)
.
28.05.18 02:27:14 pm
Up
Man Of Steel
User
Offline Off
Thanks @user Gaios: But i want a new feature if anybody buy anything so msg will show example : You bought a {weapon name}

please help me..
FRiendly boYy.
28.05.18 03:30:42 pm
Up
Gaios
Security Supporter
Offline Off
Edit lines ~217:
Code:
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:
Code:
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
28.05.18 05:09:05 pm
Up
Man Of Steel
User
Offline Off
Thanks a lot for this favor, script working perfectly thanks u so much
FRiendly boYy.
To the start Previous 1 Next To the start