Forum

> > CS2D > General > License
Forums overviewCS2D overviewGeneral overviewLog in to reply

English License

9 replies
To the start Previous 1 Next To the start

moved License

Dewfighter
User Off Offline

Quote
hello can any one make me a license script i dont find a in the board's i need the license script and i need a !kick script for the CT's on my RP server

thx

greez dew

Admin/mod comment

Wrong section. Moved /TheKilledDeath

old Re: License

Banaan
User Off Offline

Quote
I have absolutely no idea what you're talking about with 'license'.

old Re: License

Lee
Moderator Off Offline

Quote
We need more information since what you're describing is mindlessly generic...

old Re: License

HaRe
User Off Offline

Quote
I know what he means

Well idk how to get the names of the players on a menu, You can simple do an !givelicense ID or !removelicense ID

but this is the menu for the license

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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
function initArray(m)
	local array = {}
	for i = 1, m do
		array[i]=0
	end
	return array
end

license = initArray(32)
posy = initArray(32)
posx = initArray(32)
collect = initArray(32)

addhook("leave","license_leave")
function license_leave(id)
	license[id]=0
	collect[id]=0
	posy[id]=0
	posx[id]=0
end

addhook("serveraction","license_action")
function license_action(id,b)
	if license[id]==1 and b==1 then
		menu(id,"License Menu,Set Pos,Teleport,Collect")
	elseif license[id]==0 and b==1 then
		msg2(id,"You dont have license")
	end
end

addhook("menu","license_menu")
function license_menu(id,title,button)
	if title=="License Menu" then
		if button==1 then
			posx[id]=player(id,"x")
			posy[id]=player(id,"y")
			msg2(id,"Youve saved ur positon")
		elseif button==2 and posy[id]==1 and posx[id]==1 then
			parse ("setpos "..p.." "..posx[id].." "..posy[id])
			msg2(id,"Youve teleported your self")
		elseif button==2 and posy[id]==0 posx[id]==0 and 
			msg2(id,"You cant teleport your self, No position setted")
		elseif button==3 collect[id]==0 then
			msg2(id,"Collection ON")
			collect[id]=1
		elseif button==3 collect[id]==1 then
			msg2(id,"Collection OFF")
			collect[id]=0
		end
	end
end

addhook("collect","license_collect")
function license_collect(id)
	if collect[id]==1 then
		return 1
	elseif collect[id]==0 then
		return 0
	end
end

srry i forgot some stuff

old Re: License

YellowBanana
BANNED Off Offline

Quote
He wants a driver's license.
That's about the only thing lua can't do for you.

old Re: License

Starkkz
Moderator Off Offline

Quote
@vesa-omar: i think collect script it's wrong.
that's walkover.
you can't return at collect hook.

@YellowBanana: you mean like the carmod?.
I made one, but i don't want to give it to the people.
last time, someone stolen my script. and servers are using it without my creds.

old Re: License

Flacko
User Off Offline

Quote
Starkkz has written
@YellowBanana: you mean like the carmod?.
I made one, but i don't want to give it to the people.
last time, someone stolen my script. and servers are using it without my creds.

He was joking, you know.

We haven't got a crystal ball so I think nobody does really know what does he want.

old Re: License

Starkkz
Moderator Off Offline

Quote
LOL, i'm trying to understand.

Ct kick script.
1
2
3
4
5
6
7
8
9
addhook("say","rp_say")
function rp_say(id,txt)
	if string.lower(string.sub(1,5)) == "!kick" then -- Check the command
		if player(id,"team") == 2 then -- Check team
			parse("kick "..string.sub(txt,7))
		end
		return 1 -- Don't show the text
	end
end

I don't know what did he mean with license.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview