Forum

> > CS2D > Scripts > text:rank not work on (color script)
Forums overviewCS2D overview Scripts overviewLog in to reply

English text:rank not work on (color script)

34 replies
Page
To the start Previous 1 2 Next To the start

old Re: text:rank not work on (color script)

DarkBooy
User Off Offline

Quote
@user EngiN33R:
ok thanx its work ... but i need : if player(not admin)

say command "!" and (text)


msg ©255000000Error "! command(such what he say text)" Unknown command.

e.g : player(not admin) say : !asd

msg2 ©255000000Error: !asd: Unknown command.

old Re: text:rank not work on (color script)

EngiN33R
Moderator Off Offline

Quote
Code >

old Re: text:rank not work on (color script)

EngiN33R
Moderator Off Offline

Quote
I don't understand what you want with that. Do you want it to happen in 20 seconds after the round had begun, or do you want the players to have those items for the first 20 seconds in a round?

old Re: text:rank not work on (color script)

Rainoth
Moderator Off Offline

Quote
user EngiN33R has written
I don't understand what you want with that. Do you want it to happen in 20 seconds after the round had begun, or do you want the players to have those items for the first 20 seconds in a round?


I'm preety sure it's for first 20 seconds because those are most common items for map "aim_shotgun" and he is hosting exactly that map..

old Re: text:rank not work on (color script)

EngiN33R
Moderator Off Offline

Quote
Don't push your thread. We see it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function eq(id)
	parse("equip "..id.." 51")
	parse("equip "..id.." 10")
end

function deeq(id)
	parse("strip "..id.." 51")
	parse("strip "..id.." 10")
end

addhook("startround","givefortwentysecs")
function givefortwentysecs()
	for _,id in pairs(player(0,"tableliving")) do
		eq(id)
		timer(20000,"deeq",id)
	end
end

That should do it.

old Re: text:rank not work on (color script)

DarkBooy
User Off Offline

Quote
@user EngiN33R: but not this i mean . i mean :

1
2
3
4
5
addhook("spawn","eq")
function eq(id)
     parse("equip "..id.." 51")
     parse("equip "..id.." 10")
end

just spawn in first 20 sec on startround ... after 20 sec .. no spawn for players
edited 2×, last 26.02.13 01:16:31 pm

old Re: text:rank not work on (color script)

EngiN33R
Moderator Off Offline

Quote
Don't edit posts and mark them as new.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
equiptimer=20
addhook("second","ets")
function ets()
	if equiptimer>0 then
		equiptimer=equiptimer-1
	end
end

addhook("spawn","eq")
function eq(id)
	if equiptimer>0 then
		parse("equip "..id.." 51")
		parse("equip "..id.." 10")
	end
end

old Re: text:rank not work on (color script)

DarkBooy
User 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
29
30
31
32
33
34
35
36
37
addhook("say","resetci")
function resetci(id,txt)
if player(id,"usgn") == list_adm[id] then
if string.sub(txt, 1, 5) == "!spec" then
local adam = string.sub(txt, 7, 8)
parse("makespec "..adam)
return 1
elseif string.sub(txt, 1, 5) == "!kick" then
local adam = string.sub(txt, 7, 8)
parse("kick "..adam.." Admin Kickledi")
return 1
elseif string.sub(txt, 1, 4) == "!ban" then
local adam = string.sub(txt, 6, 7)
parse("banname "..adam)
return 1
elseif string.sub(txt, 1, 8) == "!restart" then
parse("restart")
return 1
elseif string.sub(txt, 1, 3) == "!makect" then
local adam = string.sub(txt, 5, 6)
parse("makect "..adam)
return 1
elseif string.sub(txt, 1, 2) == "!maket" then
local adam = string.sub(txt, 4, 5)
parse("maket "..adam)
return 1
elseif string.sub(txt, 1, 4) == "!slap" then
local adam = string.sub(txt, 4, 5)
parse("slap "..adam)
return 1
elseif string.sub(txt, 1, 4) == "!kill" then
local adam = string.sub(txt, 4, 5)
parse("killplayer "..adam)
return 1
end
end
end



The command !slap and !kill Doesn't work .... Fix it

old Re: text:rank not work on (color script)

Rainoth
Moderator Off Offline

Quote
user EngiN33R has written
I'm sorry, but you can go fuck yourself with that kind of attitude.


Oh man ! I love when people who are patient lose patience.

I completely agree. You should try to learn how to do it and not ask for others to do it. You should ask only if you don't understand or can't find what might be wrong (although it would even give you error line o.O ) We are here to help you, not do as you say.

old Re: text:rank not work on (color script)

Rainoth
Moderator Off Offline

Quote
user DarkBooy has written
@user EngiN33R: @user Rainoth: Yes you Right! but... i don't understand to learn lua script .. because my Country is Language Arabic ... sow i'm Not much understand
English . I like "helper" If you can/want help me Thanx


Well Lua isn't exactly english language. There are very FEW words in english and if you take some time to look at dictionary to know those 30 words.. then you'll understand what WHAT means. People don't usually make anything for others unless they are completely generous/insane or they want cash .. It would be much more handful to learn it yourself. Practice makes perfect.
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview