Forum

> > CS2D > Scripts > Script Doenst Working?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Script Doenst Working?

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Script Doenst Working?

berkebaba35
User Off Offline

Zitieren
Hello, This lua doesn't Working!
Please Why is here a Problem?
I will that Admin Press "F2" and comming this Script...
But only for Admin, and this doesnt working -->

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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
AdminUsgn = {65491}

-------------------

function ar(m)

local array = {}

for i = 1, m do

array[i]=0

end

return array

end



cx=ar(32)

cy=ar(32)

modd=ar(32)

star=0



local _TIMER = {}

local _time = 0



addhook('ms100','TIMERms100',100)

function TIMERms100()

_time = _time + 100

for k, v in pairs(_TIMER) do

if v[2] <= _time then

v[1](unpack(v, 3))

_TIMER[k] = nil

end

end

end



function addtimer(delay, func, ...)

if type(func) == 'function' and type(delay) == 'number' then

for i = 1, #_TIMER+1 do

if not _TIMER[i] then

_TIMER[i] = {func, _time+delay, ...}

return i

end

end

else

return false

end

end



function remtimer(id)

_TIMER[id] = nil

end



timer(1,"fare","",0)



function fare()

reqcld(0,2)

end



addhook("clientdata","_clientdata")

function _clientdata(id,mode,x,y)

if mode == 2 then

cx[id] = x

cy[id] = y

end

end



addhook("serveraction","_serveraction")

function _serveraction(id,act)

if act==1 then

if modd[id]==0 then

modd[id]=1

elseif modd[id]==1 then

modd[id]=0

end

end

end



addhook("always","_ms100")

function _ms100()

for _, usgn in ipairs(AdminUsgn) do

if modd[id]==1 then

star=star+1

star=image("gfx/sprites/flare2.bmp",cx[id],cy[id],1)

imageblend(star,1)

imagescale(star,0.4,0.4)

local renk = math.random(1,6)

if renk==1 then imagecolor(star,255,0,0) end;

if renk==2 then imagecolor(star,0,255,0) end;

if renk==3 then imagecolor(star,0,0,255) end;

if renk==4 then imagecolor(star,255,255,0) end;

if renk==5 then imagecolor(star,255,255,255) end;

if renk==6 then imagecolor(star,0,255,255) end;

tween_scale(star,1000,2,2)

tween_alpha(star,1000,0)

addtimer(1000,freeimage,star)

end

end

end

PLS HELPING!

alt Re: Script Doenst Working?

TimeQuesT
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
addhook("serveraction","GayAssShit")

function GayAssShit(id,act)

if (AdminUsgn[1]==65491) then -- gay, fast and dirty solution
if act==1 then
if modd[id]==0 then
modd[id]=1
elseif modd[id]==1 then
modd[id]=0
end
end
end



end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht