Forum

> > CS2D > Scripts > My classes script dont work correctly
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch My classes script dont work correctly

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: My classes script dont work correctly

hunter139
User Off Offline

Zitieren
something else having to do with the admin and owner class

even i am an owner, i cant get the class, i get nothing when i select admin or owner class even i am admin or owner

help !!

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
-- Owner Class
if (sample.classes.class[id]==23) then
	if (player(id,'usgn')==ownerusgn) then 
		msg2(id,"©000255000You Selected The Owner Class!")
			parse ("equip "..id.." 74")
			parse ("setmaxhealth "..id.." 250")
			parse ("speedmod "..id.." 100")
			parse ("equip "..id.." 3")
			parse ("equip "..id.." 45")
			parse ("equip "..id.." 83")
			parse ("equip "..id.." 69")
			parse ("equip "..id.." 88")
			parse ("equip "..id.." 85")
			parse ("equip "..id.." 77")
			parse ("equip "..id.." 87")
			parse ("equip "..id.." 89")
			parse ("equip "..id.." 54")
			parse ("equip "..id.." 75")
	end
else
		sel_class[id] = math.random(1,22)
			if (sel_class[id]==9) then
				sel_class[id] = math.random(1,22)
			end
			if (sel_class[id]==17) then
				sel_class[id] = math.random(1,22)
			end
			if (sel_class[id]==18) then
				sel_class[id] = math.random(1,22)
			end
end
-- Admin Class
if (sample.classes.class[id]==24) then
	if (player(id,'usgn')==adminusgn) then 
		msg2(id,"©000255000You Selected The Admin Class!")
			parse ("equip "..id.." 74")
			parse ("setmaxhealth "..id.." 200")
			parse ("speedmod "..id.." 50")
			parse ("equip "..id.." 5")
			parse ("equip "..id.." 47")
			parse ("equip "..id.." 81")
			parse ("equip "..id.." 41")
			parse ("equip "..id.." 75")
			parse ("equip "..id.." 91")
			parse ("equip "..id.." 89")
	end
else
	sel_class[id] = math.random(1,22)
		if (sel_class[id]==9) then
			sel_class[id] = math.random(1,22)
		end
		if (sel_class[id]==17) then
			sel_class[id] = math.random(1,22)
		end
		if (sel_class[id]==18) then
			sel_class[id] = math.random(1,22)
		end
end

1
2
ownerusgn = {113769}
adminusgn = {123734}

*****EDIT*****
Well, i know why
the class does not apply for some reason
because i did it so when someone choose a class, a message come out : You selected the ...... class
and that message does not appear when you choose admin or owner class

P.S.: NO ERRORS IN CONSOLE
1× editiert, zuletzt 21.08.13 21:20:53

alt Re: My classes script dont work correctly

Infinite Rain
Reviewer Off Offline

Zitieren
Remove the figure brackets here:
1
2
ownerusgn = {113769}
adminusgn = {123734}
Change it to:
1
2
ownerusgn = 113769
adminusgn = 123734

Should work now, but you won't be able to add more admins
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht