Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #[
- Why hello there! This is Awesome's Auto Gun Store 1, obviously made
- by Awesome. It will sell guns to other users (or yourself if you
- want). It will automatically detect prices and add a set profit per
- gun to it. You can set the profit yourself.
- IMPORTANT!!!!!
- If this user overpays for a gun, that overpayment is transferred into
- a 'Credits' system. Credits are a way to discount players to
- compensate for overpaying. The amount the player has overpayed by will
- be added to the credit amount. Then, the next customer can get that
- same amount of credits removed from their purchase. However, if it
- goes down to below $2, the price will stay at $2. $2 is the mandatory
- fee required to USE the credits.
- ]#
- #[ ESSENTIAL CODE BITS & PIECES ]#
- @name Auto Gunstore 1
- @inputs CustomerEGP:wirelink User:entity
- @inputs IntEGP:wirelink
- @inputs X Y Use
- @inputs Ranger1 Ranger2 Ranger3 Ranger4 Ranger5 Ranger6
- @outputs User1 User2 User3 User4 User5 User6
- @persist Menu CustMenu Toggle
- runOnChat(1)
- if (duped()){
- IntToggle = 0
- CustToggle = 0
- print("-=_=- AUTO GUNSTORE 1 -=_=-")
- print("Made by Awesome.")
- print("Type !cmd in chat to list commands.")}
- #[ /ESSENTIAL CODE BITS & PIECES ]#
- #[ CHAT COMMANDS ]#
- if (chatClk(owner())) {
- OwnerMSG = owner():lastSaid():lower():explode(" ")
- if(OwnerMSG[1,string]=="!cmd"){ #[ !cmd ]#
- hideChat(1)
- print("--- Commands List ---")
- print("[KEY] [1/2] = Choose one, optional")
- print("")
- print("[CMD] !cmd")
- print("[DESC] Shows this list")
- print("")
- print("[CMD] !toggle")
- print("[DESC] Toggles the gun store On/Off")
- print("[SYNT] !toggle [on/off]")}
- if(OwnerMSG[1,string]=="!toggle"){ #[ !toggle ]#
- hideChat(1)
- if(OwnerMSG[2,string]=="on"){
- IntToggle = 1
- CustToggle = 1}
- elseif(OwnerMSG[2,string]=="off"){
- IntToggle = 0
- CustToggle = 0}
- elseif(OwnerMSG[2,string]==""){
- IntToggle = !IntToggle
- CustToggle = IntToggle}
- if (IntToggle){
- hint("AutoGunStore1 has been turned ON.",3)}
- else{
- hint("AutoGunStore1 has been turned OFF.",3) }}}
- else{ #[ Not Command ]#
- hideChat(0)}
- #[ /CHAT COMMANDS ]#
- #[ ScreenPrint ]#
- if (CustToggle){
- CustomerEGP:egpClear()
- CustomerEGP:egpBox( 1, vec2(0,0), vec2(600,100))
- CustomerEGP:egpColor( 1, vec((255/2),(255/2),(255/2)))
- CustomerEGP:egpCircle( 2, vec2(25,25), vec2(20,20))
- CustomerEGP:egpColor( 2, vec(55,255,55))
- CustomerEGP:egpText( 3, "1 Gun Select", vec2(15,6))
- CustomerEGP:egpSize( 3, 35)
- CustomerEGP:egpColor( 3, vec(175,255,175))}
- else{
- CustomerEGP:egpClear()
- CustomerEGP:egpText( 100, "Gun Store Disabled", vec2(100,200))
- CustomerEGP:egpSize( 100, 39)
- CustomerEGP:egpColor( 100, vec(255,127.5,127.5))
- CustomerEGP:egpText( 99, ">:(", vec2(285,250))
- CustomerEGP:egpSize( 99, 39)
- CustomerEGP:egpColor( 99, vec(255,127.5,127.5))
- CustomerEGP:egpAngle( 99, 270)}
- #[ /ScreenPrint ]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement