Forum

> > CS2D > Scripts > Fast Reload (Only Admin)
Forums overviewCS2D overview Scripts overviewLog in to reply

English Fast Reload (Only Admin)

6 replies
To the start Previous 1 Next To the start

old Re: Fast Reload (Only Admin)

MikuAuahDark
User Off Offline

Quote
did i was post it at your facebook?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
admins = {33997}

function isadmin(id)
	for _, usgn in ipairs(admins) do
		if player(id,"usgn")==usgn then
			return true
		else
			return false
		end
	end
end

addhook("say","fastreload")
function fastreload(id,txt)
	if isadmin(id)==true then
		if player(id,"process")==1 then
			if txt:sub(1,10)=="fastreload" then
				parse("equip "..id.." "..player(id,"weapontype"))
			end
		end
		return 1
	end
end

old Re: Fast Reload (Only Admin)

EP
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
admins = {USGN,USGN} 
addhook("attack","a")
function a(id,w)
	for k,v in ipairs(admins) do
		if player(id,"usgn") == v then
		parse("equip "..id.." "..w)
		parse("setweapon "..id.." "..w)
		end
	end
end
shorter
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview