Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Kidnap Betal E2
- @inputs EGP:wirelink User:entity
- @outputs Door
- @persist
- @trigger
- ##################################
- #Lavet af smithy, aendret af xKow#
- ##################################
- ######Pris#####
- Pris = 20000
- ###############
- ######Tid######
- Tid = 5000
- ###############
- function number wirelink:egpButton(Idx:number,Ply:entity){
- TL = This:egpPos(Idx) - This:egpSize(Idx) / 2 * (0 ? 0 : 1)
- BR = This:egpPos(Idx) + This:egpSize(Idx) / (0 ? 1 : 2)
- Cur = This:egpCursor(Ply) return inrange(Cur, TL, BR) exit()
- }
- EGP:egpBox(1, vec2(256,256), vec2(512,512))
- EGP:egpBox(2, vec2(256,256), vec2(250,100)) EGP:egpColor(2,200,0,0,150)
- EGP:egpText(3,"Betal", vec2(256,256)) EGP:egpAlign(3,1,1) EGP:egpSize(3,100)
- EGP:egpText(4,"Pris: 20000 kr", vec2(256,190)) EGP:egpAlign(4,1,1) EGP:egpSize(4,20)
- EGP:egpBox(1,vec2(256,256),vec2(512,512)) EGP:egpMaterial(1,"console/background06")
- if(EGP:egpButton(2, User)){
- moneyRequest(User,Pris,"Betal for frihed")
- }
- if(moneyClk()){
- Door = 1
- timer("",Tid)
- }
- if(clk("")){
- Door = 0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement