Welcome to the Tigress Forums.

If you havent registered, on the top of the forums there is a register page which you can login to the forums,
If you aren't registered you wont be able to see half of the content registered users see.

If you are registered, please login via the "LOGIN" button above Smile

ps. If you have registered, log in so you don't lose any progress.

E2 Gunshop Code

View previous topic View next topic Go down

E2 Gunshop Code

Post by Jarred Plissken on Tue Dec 08, 2015 7:09 pm

I have made a E2 Gun shop code but it works a bit differently 


@name Custom Gunshop By Alive Prototype
@inputs CS:wirelink 
@model models/props_junk/PopCan01a.mdl
runOnChat(1)

CS:writeString("Welcome",0,1,999)

A = owner():lastSaid():explode(" ")


"Help section"

if(A[1,string]==".help" & chatClk(owner())){
hint("(.g1 .g2 .g3 .g4) Then Name To add guns",20)
hint("(.p1 .p2 .p3 .p4) Then Number To Add prices",20)
hint("(.clear) To Clear The Screen From guns",20)
hint("Thank you for using this script made by Alive ",20)
}

"Clear Command"
if(A[1,string]==".clear" & chatClk(owner())){
CS[2041]=3
}
"Lines between Guns"
CS:writeString("Enjoy our range of guns",0,2,999)
CS:writeString("Price",25,2,999)
CS:writeString("_____",25,3,500,20,10)
CS:writeString("_______________________",0,3,999,999)

"Gun add section"

if(A[1,string]==".g1" & chatClk(owner())){
#CS[2041]=1
CS:writeString((A[2,string])+" "+(A[3,string]),0,4,999)
}

if(A[1,string]==".g2" & chatClk(owner())){
#CS[2041]=1
CS:writeString((A[2,string])+" "+(A[3,string]),0,5,999)
}

if(A[1,string]==".g3" & chatClk(owner())){
#CS[2041]=1
CS:writeString((A[2,string])+" "+(A[3,string]),0,6,999)
}

if(A[1,string]==".g4" & chatClk(owner())){
#CS[2041]=1
CS:writeString((A[2,string])+" "+(A[3,string]),0,7,999)
}

if(A[1,string]==".g5" & chatClk(owner())){
#CS[2041]=1
CS:writeString((A[2,string])+" "+(A[3,string]),0,8,999)
}

if(A[1,string]==".g6" & chatClk(owner())){
#CS[2041]=1
CS:writeString((A[2,string])+" "+(A[3,string]),0,9,999)
}

"Price Add section"

if(A[1,string]==".p1" & chatClk(owner())){
#CS[2041]=1
CS:writeString("$"+(A[2,string]),25,4,999)

}

if(A[1,string]==".p2" & chatClk(owner())){
#CS[2041]=1
CS:writeString("$"+(A[2,string]),25,4,999)

}

if(A[1,string]==".p3" & chatClk(owner())){
#CS[2041]=1
CS:writeString("$"+(A[2,string]),25,4,999)

}

if(A[1,string]==".p4" & chatClk(owner())){
#CS[2041]=1
CS:writeString("$"+(A[2,string]),25,4,999)

}

if(A[1,string]==".p5" & chatClk(owner())){
#CS[2041]=1
CS:writeString("$"+(A[2,string]),25,4,999)

}

if(A[1,string]==".p6" & chatClk(owner())){
#CS[2041]=1
CS:writeString("$"+(A[2,string]),25,4,999)

}

"Hding Chat Section"

if(owner():lastSaid() == ".clear")
{hideChat(100)}

if(owner():lastSaid() == ".help")
{hideChat(100)}

if(owner():lastSaid() == ".Peter is a prick")
{hideChat(100)}


"End of code"

So what this dose is a Gun shop sign where you can add your own guns via !g1 M249 then the price Via !p1 7500 I have no issues with anyone using/improving this design just make sure to keep my name in it please

What I am planning to do
Making so you can set the vaule to a out put you don't have to use consta vaule or equal gates
What I am working on
Creating pre-set options


Last edited by Jarred Plissken on Tue Dec 08, 2015 9:06 pm; edited 1 time in total (Reason for editing : Dev-Log)

Jarred Plissken
Member

Posts : 100
Join date : 2015-03-01
Age : 16
Location : Tassie mate

Back to top Go down

Re: E2 Gunshop Code

Post by Aphlex on Tue Dec 08, 2015 7:44 pm

Very nice man!! Cant wait to use this code once i get donator
avatar
Aphlex
Member

Posts : 79
Join date : 2015-12-01
Age : 16
Location : Sydney

Back to top Go down

Re: E2 Gunshop Code

Post by Emerald Kiwi on Tue Dec 08, 2015 7:49 pm

NICEY
avatar
Emerald Kiwi
Member

Posts : 233
Join date : 2015-06-12
Age : 20
Location : New Zealand

Back to top Go down

Re: E2 Gunshop Code

Post by Ignatius, McGilliCuddy on Tue Dec 08, 2015 7:57 pm

Tried it out in singleplayer, works well man. Goodjob
avatar
Ignatius, McGilliCuddy
Member

Posts : 16
Join date : 2015-12-06
Age : 16
Location : Queensland, Australia

Back to top Go down

Re: E2 Gunshop Code

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


Permissions in this forum:
You cannot reply to topics in this forum