Forum

> > CS2D > Scripts > text:rank not work on (color script)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch text:rank not work on (color script)

34 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

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

DarkBooy
User Off Offline

Zitieren
@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.

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

EngiN33R
Moderator Off Offline

Zitieren
Code >

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

EngiN33R
Moderator Off Offline

Zitieren
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?

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

Rainoth
Moderator Off Offline

Zitieren
user EngiN33R hat geschrieben
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..

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

EngiN33R
Moderator Off Offline

Zitieren
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.

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

DarkBooy
User Off Offline

Zitieren
@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
2× editiert, zuletzt 26.02.13 13:16:31

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

EngiN33R
Moderator Off Offline

Zitieren
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

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

DarkBooy
User 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
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

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

Rainoth
Moderator Off Offline

Zitieren
user EngiN33R hat geschrieben
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.

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

Rainoth
Moderator Off Offline

Zitieren
user DarkBooy hat geschrieben
@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.
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht