Forum

> > CS2D > Scripts > infinite items request
Forums overviewCS2D overview Scripts overviewLog in to reply

English infinite items request

4 replies
To the start Previous 1 Next To the start

old infinite items request

hunter139
User Off Offline

Quote
hi guys
i need to have a script so the players have weapons 51,52,53,72,73,75,76,87,77,89,69,85,86
when a player say "!inf" and it should be for admin only
which means adminlist = {123734}

and also they should be infinite, if i use a grenade or a mine, i get them again

thanks in advance

old Re: infinite items request

TopNotch
User Off Offline

Quote
Here you are.
Spoiler >
edited 1×, last 11.08.13 09:54:20 am

old Re: infinite items request

Rainoth
Moderator Off Offline

Quote
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
inf = {}
adm = {80085}

addhook("spawn","lespawn")
function lespawn(id)
	inf[id]=0
end

addhook("say","potato")
function potato(id,t)
	if t =="!inf" then
		for _,usgn in ipairs(adm) do
			if player(id,"usgn")==usgn then
				parse("equip "..id.." 45") -- add your OP items here
				inf[id]=1
			end
		end
	end
end

addhook("second","infinity")
function infinity()
	for _,id in ipairs(player(0,"tableliving")) do
		if inf[id]==1 then
			parse("equip "..id.." 72") -- Add your OP items which have to recharge here
		end
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview