Forum

> > Trash > Shotgun pro
Forums overviewTrash overviewLog in to reply

English Shotgun pro

2 replies
To the start Previous 1 Next To the start

closed moved Shotgun pro

Leonidas12
User Off Offline

Quote
i new lua script möaked its pro version ...
∗ buy shotgun
∗ buy armor
• its not working

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
addhook("serveraction" , "menu")


function menu(id,title, button)
	menu(id,"Shotgun Pro Buy,Buy Shotgun,Buy Armor")
	if button==Buy Shotgun then 
                  	if player(id,"money")==2000 then
                  	parse("equip "..id.." 11 ")
                  if button==Buy Armor then
                  if player(id,"money")==8500 then
                  	parse("equip "..id.." 58 ")


end
	end
	

addhook("say" , "score")

function score(text)

                  parse('hudtxt2 "..id.." Scores "©255255255CT's Score '..game("score_ct")..' " 282 458 Play fun!')
	parse('hudtxt2 "..id.." Scores "©255255255T's Score '..game("score_t")..' " 239 458 Play fun!')
note say score hook is temponary ok..

old Re: Shotgun pro

Apache uwu
User Off Offline

Quote
Woah!

Okay.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
addhook("serveraction","_serveraction")
addhook("menu","_menu")
addhook("startround","_startround")

function _serveraction(id,action)
	menu(id,"Shotgun Pro Buy,Buy Shotgun,Buy Armor")
end

function _menu(id,title, button)
	if title=="Shotgun Pro Buy" then
		if button==1 then
			if player(id,"money")>=2000 then
				parse("equip "..id.." 11 ")
				parse("setmoney "..id.." "..player(id,"money")-2000)
				parse("setweapon "..id.." 11")
			end
		elseif button==2 then
			if player(id,"money")>=8500 then
				parse("equip "..id.." 58 ")
				parse("setmoney "..id.." "..player(id,"money")-8500)
			end
		end
	end
end

function _startround()
	parse("hudtxt 1 \"©255255255CT's Score "..game("score_ct").."\"  300 458")
	parse("hudtxt 2 \"©255255255T's Score "..game("score_t").."\"  200 458")
end

_startround()

This it?

Potentially you could add money checks, and list the weapon price on the menu with '|'.
edited 1×, last 22.10.11 09:19:23 pm

old Re: Shotgun pro

DC
Admin Off Offline

Quote
@user Leonidas12: you already have another shotgun script thread. use it instead of spamming X shotgun script threads. please.
To the start Previous 1 Next To the start
Log in to replyTrash overviewForums overview