Thank you
Forum
CS2D Scripts Speedmodall Script?Speedmodall Script?
6 replies 1
Thank you
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("say","speedmodall") function speedmodall(id,t) 	if t:sub(1,12)=="@speedmodall" then 		local sp=tonumber(t:sub(14)) 		for _,i in pairs(player(0,"tableliving")) do 			parse("speedmod "..i.." "..sp) 		end 	end end
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
addhook("say","speedmodall") function speedmodall(id,t) 	for _,usgn in ipairs(mode) do 		if player(id,"usgn")==usgn do 			if t:sub(1,12)=="@speedmodall" then 			 local sp=tonumber(t:sub(14)) 				for _,i in pairs(player(0,"tableliving")) do 				parse("speedmod "..i.." "..sp) 			end 		end 	end end
Necr0 has written
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
addhook("say","speedmodall") function speedmodall(id,t) 	for _,usgn in ipairs(mode) do 		if player(id,"usgn")==usgn do 			if t:sub(1,12)=="@speedmodall" then 			 local sp=tonumber(t:sub(14)) 				for _,i in pairs(player(0,"tableliving")) do 				parse("speedmod "..i.." "..sp) 			end 		end 	end end
Doesnt work? I have so write.. in my Script, from you Script @ Necr0:
But its doesn't work, and i can not Speak with Color from ADMIN (mode)?
@user: 44691: i wait him ..
1
if player(id,"usgn")==usgn do -- should be then
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
addhook("say","speedmodall") function speedmodall(id,t) 	local sp=tonumber(t:sub(14)) 	for _,usgn in ipairs(mode) do 	for _,i in pairs(player(0,"tableliving")) do 	if player(id,"usgn")==usgn then 		if t:sub(1,12)=="@speedmodall" then 			parse("speedmod "..i.." "..sp) 				end 			end 		end 	end end
Jynxxx has written
you put do instead of then on this line
1
if player(id,"usgn")==usgn do -- should be then
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
addhook("say","speedmodall") function speedmodall(id,t) 	local sp=tonumber(t:sub(14)) 	for _,usgn in ipairs(mode) do 	for _,i in pairs(player(0,"tableliving")) do 	if player(id,"usgn")==usgn then 		if t:sub(1,12)=="@speedmodall" then 			parse("speedmod "..i.." "..sp) 				end 			end 		end 	end end
WOW NICE THANK YOU @ Jynxxx: YOU ARE BEST
1