Forum

> > CS2D > Scripts > infinite items request
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch infinite items request

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt infinite items request

hunter139
User Off Offline

Zitieren
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

alt Re: infinite items request

TopNotch
User Off Offline

Zitieren
Here you are.
Spoiler >
1× editiert, zuletzt 11.08.13 09:54:20

alt Re: infinite items request

Rainoth
Moderator Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht