Forum

> > CS2D > Scripts > I Have Pr0bl3m With C4 Script
Forums overviewCS2D overview Scripts overviewLog in to reply

English I Have Pr0bl3m With C4 Script

7 replies
To the start Previous 1 Next To the start

old I Have Pr0bl3m With C4 Script

stilltech
User Off Offline

Quote
Hy, I Have Problem With My C4 Script
Can You Help Me Plz

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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
m = 	{"zm_bunker [ms]m111",
	"de_dust"} ----->Paste Here More Maps To Vote and change
-- msg(""..#m.."")  --Count Of Maps In Table
nukereq =  {10,
			15,
			20,
			25,
			30,
			100,
			200,
			500,
			1000}
size = math.sqrt(32*32*32*32)
nukesize = {(size*1),
			(size*2),
			(size*3),
			(size*4),
			(size*5),
			(size*6),
			(size*7),
			(size*8),
			(size*9)}
nukepwr =  {2000,
			5000,
			10000,
			200000,
			5000000,
			10000000,
			200000000,
			5000000000,
			10000000000}

nukenames = {"20kt",
			"50kt",
			"100kt",
			"200kt",
			"500kt",
			"1mt",
			"2mt",
			"5mt",
			"10mt"}

----------------------
--LOCATION MOD!!!!----
----------------------

webnet = {}
function webnet:new(name,strict)
	local w = setmetatable({},{__index=webnet})
    if type(name) == 'string' then 
        local t,e = w:load(name,strict)
        if t == nil then w = nil; return nil,e end
    end
    return w
end
function webnet:load(name,strict)
	local last = -1
    local ib,ie,ia,_,co,cou,coun
    local ibn, ien
    local iptab,cotab = {},{}
    local f = io.open(name,"rt")
    if f == nil then return nil,"file not found" end
    for str in f:lines() do
        ib,ie,ia,_,co,cou,coun = 
                str:match('"(%d+),""(%d+)"",""(%l+)"",""(%d+)"",""(%u%u)"",""(%u%u%u?)"",""(.*)"""')
        if ib == nil or ie == nil or co == nil then
            if str:sub(1,1) == '"' then return nil,"bad line in file",str end
        else
            ibn, ien = tonumber(ib), tonumber(ie)
            if ibn <= last or ien < ibn then
                if strict then return nil,"ip data out of order" end
            else
                if ibn ~= last+1 then
                    iptab[#iptab+1] = last+1
                    cotab[#cotab+1] = "-- UNALLOCATED"
                end
                iptab[#iptab+1] = ibn
                cotab[#cotab+1] = co..' '..coun
                last = ien
            end
        end
    end    
    iptab[#iptab+1] = last+1
    cotab[#cotab+1] = "-- UNALLOCATED"
    
    self.iptab, self.cotab = iptab, cotab
    return self
end
function webnet:lookup(ip)
    if type(ip) == 'number' then 
       if ip<0 or ip>=2^32 then return nil,"bad ip number" end
    elseif type(ip) == 'string' then
       local a,b,c,d = ip:match('(%d+).(%d+).(%d+).(%d+)')
       if a==nil or b==nil or c==nil or d==nil then return nil, "bad ip string" end
       a,b,c,d = a+0,b+0,c+0,d+0
       if a<0 or b<0 or c<0 or d<0 then return nil,"bad ip string" end
       if a>255 or b>255 or c>255 or d>255 then return nil,"bad ip string" end
       ip = a*2^24 + b*2^16 + c*2^8 + d
    else
       return nil, "bad ip parameter"
    end
    local bot,top = 1,#self.iptab
    if ip <  self.iptab[bot] then return "--","UNALLOCATED" end
    if ip >= self.iptab[top] then return "--","UNALLOCATED" end
    local lap,lim = 0,(math.log(#self.iptab)/math.log(2))*1.5
    repeat
        lap = lap+1
        local mid = bot + math.floor((top-bot)/2)
        if ip >= self.iptab[mid] and ip < self.iptab[mid+1] then
            return self.cotab[mid]:match('(%C%C) (.*)')
        end
        if ip < self.iptab[mid] then top = mid else bot = mid+1 end
    until bot >= top or lap > lim
    return nil,"lookup error"
end
function Array(size,value) 
    local array = {}
    for i = 1, size do
        array[i]=value
    end
    return array
end
function my_msg(t)
	parse("sv_msg "..t)
end
function plimit()
	f = #player(0,"table")
	vlimit =f
		if f == 3 then vlimit = 2
		elseif f == 4 then vlimit = 3
		elseif f == 5 then vlimit = 4
		elseif f == 6 then vlimit = 5
		elseif f == 7 then vlimit = 6
		elseif f == 8 then vlimit = 7
		elseif f == 9 then vlimit = 8
		elseif f == 10 then vlimit = 8
		elseif f == 11 then vlimit = 9
		elseif f == 12 then vlimit = 10
		elseif f == 13 then vlimit = 11
		elseif f == 14 then vlimit = 12
		elseif f == 15 then vlimit = 13
		elseif f == 16 then vlimit = 14
		elseif f == 17 then vlimit = 15
		elseif f == 18 then vlimit = 16
		elseif f == 19 then vlimit = 17
		elseif f == 20 then vlimit = 17
		elseif f == 21 then vlimit = 18
		elseif f == 22 then vlimit = 19
		elseif f == 23 then vlimit = 20
		elseif f == 24 then vlimit = 21
		elseif f == 25 then vlimit = 22
		elseif f == 26 then vlimit = 23
		elseif f == 27 then vlimit = 24
		elseif f == 28 then vlimit = 25 
		elseif f == 29 then vlimit = 26
		elseif f == 30 then vlimit = 26
		elseif f == 31 then vlimit = 27
		elseif f == 32 then vlimit = 28
	end
end

w = webnet.new()
e,e_msg,s = w:load('sys/lua/IpToCountry.csv')

location = Array(32,"")
score = Array(32,0)
yavoto = Array(32,false)
apoll = {}
apoll = false
mav = 0
maprate = 0
vlimit = plimit()

function exists(filename) 
local file = io.open(filename)
if file then
io.close(file)
return true
else
return false
end
end
savestr = {}
function readfile(filelocation, linenum)
saveline=1
for line in io.lines(filelocation) do 
savestr[saveline]=line
saveline=saveline+1
end
return savestr[linenum]
end
addhook("say","lolz")
function lolz(id,txt)
	if txt == "lol" then
		msg2(id,""..vlimit.."")
	end
end
addhook("leave","limit") function limit(id) plimit() end
addhook("join","a")
function a(id)
	score[id]=0
	yavoto[id]=false
	plimit()
		if apoll == true then
			uhud(mav)
		end
	iso,name = w:lookup(player(id,"ip"))
	location[id] = name
	msg("©000255000"..player(id,"name").." HAS JOINED FROM "..name) 
	if player(id,"usgn") > 0 then
		if exists("sys/lua/puntajes/"..player(id,"usgn")..".txt") then
			score[id] = readfile("sys/lua/puntajes/"..player(id,"usgn")..".txt",1)+1-1
		else
			File = io.open("sys/lua/puntajes/"..player(id,"usgn")..".txt", "w+")
			File:write("0")
			File:close() 
		end
	end			
end

addhook("kill","b")
function b(id)
	if player(id,"usgn") ~=0 then
		File = io.open("sys/lua/puntajes/"..player(id,"usgn")..".txt", "w+")
		File:write((score[id]+1))
		File:close()
	end
	score[id] = score[id]+1
end

addhook("kill","sdakj")
function sdakj(id,x,y)
	hudtext2(5,"255255255","Frags: "..score[id],3,(200+16))
	hudtext2(8,"255255100","Your Score : "..player(id,"score"),3,(250+16))
end

addhook("hit","nohit")
function nohit(id,pl)
	if id == pl then
		return 1
	end
end

function yv(id)
	msg2(id,"©255000000You already voted!@C")
end

function na(id)
	msg2(id,"©255000000You can't vote now!@C")
end

-------------------------------
--CHANGE TEAMS-----------------
-------------------------------

addhook("serveraction","c")
function c(id,b)
	if b == 1 then
		menu(id,"Select...,NUKE SELF|("..score[id].." frags),,SWITCH TEAMS,SHOW COUNTRIES,MAP VOTE")
	elseif b == 2 then
		if apoll == true then
			if yavoto[id]==false then
				maprate = maprate + 1
				yavoto[id]=true
				msg("©000255000"..player(id,"name").." says YES")
				uhud(mav)
				lolz()
			else
				yv(id)
			end
		else
			na(id)
		end
	elseif b == 3 then
		if apoll == true then
			if yavoto[id]==false then
				maprate = maprate - 1
				yavoto[id]=true
				msg("©255000000"..player(id,"name").." says NO")
				uhud(mav)
			else
				yv(id)
			end
		else
			na(id)
		end
	end
end

function explosion(id,size,power)
	parse("explosion "..player(id,"x").." "..player(id,"y").." "..size.." "..power.." "..id)
end

function exp1(id,a)
	File = io.open("sys/lua/puntajes/"..player(id,"usgn")..".txt", "w+")
	File:write((score[id]-a))
	File:close() 
	score[id]=score[id]-a
end

function fpoll()
	apoll = false
	maprate = 0
	mav = 0
	msg("©255255255The poll has been ended!@C")
	for lol = 1,3 do
		parse("hudtxt2 0 "..lol)
	end
	for i = 1,32 do
		yavoto[i]=false
	end
end

function lolz()
	if maprate == vlimit then
		parse("changelevel "..m[mav])
	end
end

function hudtext2(tid,color,txt,x,y)
     local toprint = ("©"..color.." "..txt)
	for i = 1,32 do
     parse('hudtxt2 '..i..' '..tid..' "'..toprint..'" '..x.." "..y)
	 end
end

function uhud(id)
	local map = m[mav]
	hudtext2(1,"255255255",player(id,"name").." has started a poll to map: "..map,3,(16+364))
	hudtext2(2,"255255255","Voting for poll. Press F3 to agree or F4 to deny",3,(16+380))
	hudtext2(3,"255255255","Map: "..map.." ~ "..maprate.."/"..vlimit,3,(396+16))
end

function tmsg(time)
	msg("©255255255"..time.."@C")
end

function all(ma,id)
	if apoll == false then
	mav = ma
	local map = m[mav]
	msg("©255255255Poll has been started to map : "..map.."@C")
	maprate = maprate + 1
	yavoto[id]=true
	apoll = true
	uhud(id)
	lolz()
	timer(60000,"fpoll")
	timer(15000,"tmsg",45)
	timer(30000,"tmsg",30)
	timer(45000,"tmsg",15)
	timer(50000,"tmsg",10)
	timer(51000,"tmsg",9)
	timer(52000,"tmsg",8)
	timer(53000,"tmsg",7)
	timer(54000,"tmsg",6)
	timer(55000,"tmsg",5)
	timer(56000,"tmsg",4)
	timer(57000,"tmsg",3)
	timer(58000,"tmsg",2)
	timer(59000,"tmsg",1)
	else
		msg2(id,"You can't start a poll now!@C")
	 end
end

function page(id,n,a,b)
	local Tmp = ""
	for c = a,b do
		Tmp = Tmp..m[c]..","
		menu(id,"Maps Page "..n..","..Tmp.."Back,Next")
	end
end

addhook("menu","d")
function d(id,t,b)
	if t == "Select..." then
		if b == 1 then
			menu(id,"NUKE SELF,"..nukenames[1].."|"..nukereq[1]..","..nukenames[2].."|"..nukereq[2]..","..nukenames[3].."|"..nukereq[3]..","..nukenames[4].."|"..nukereq[4]..","..nukenames[5].."|"..nukereq[5]..","..nukenames[6].."|"..nukereq[6]..","..nukenames[7].."|"..nukereq[7]..","..nukenames[8].."|"..nukereq[8]..","..nukenames[9].."|"..nukereq[9].."")
		elseif b == 3 then
			if player(id,"team") == 1 then
				parse("makect "..id)
			elseif player(id,"team") == 2 then
				parse("maket "..id)
			end
		elseif b == 5 then
			page(id,1,1,7)
		elseif b == 4 then
				msg2(id,"©255255255Players countries -------------------------")
			for i = 1,32 do
				if location[i]~= "" then
					if player(i,"team") == 1 then
						msg2(id,"©255000000"..player(i,"name").." FROM "..location[i])
					elseif player(id,"team") == 2 then
						msg2(id,"©000000255"..player(i,"name").." FROM "..location[i])
					elseif player(id,"team") == 0 then
						msg2(id,"©255255000"..player(i,"name").." FROM "..location[i])
					end
				end
			end
		end
	elseif t == "Maps Page 1" then
		if b == 1 then
			all(1,id)
		elseif b == 2 then
			all(2,id)
		elseif b == 3 then
			all(3,id)
		elseif b == 4 then
			all(4,id)
		elseif b == 5 then
			all(5,id)
		elseif b == 6 then
			all(6,id)
		elseif b == 7 then
			all(7,id)
		elseif b == 8 then
			
		elseif b == 9 then
			page(id,2,8,14)
		end
	elseif t == "Maps Page 2" then
		if b == 1 then
			all(8,id)
		elseif b == 2 then
			all(9,id)
		elseif b == 3 then
			all(10,id)
		elseif b == 4 then
			all(11,id)
		elseif b == 5 then
			all(12,id)
		elseif b == 6 then
			all(13,id)
		elseif b == 7 then
			all(14,id)
		elseif b == 8 then
			page(id,1,1,7)
		elseif b == 9 then
			page(id,3,15,21)
		end
	elseif t == "Maps Page 3" then
		if b == 1 then
			all(15,id)
		elseif b == 2 then
			all(16,id)
		elseif b == 3 then
			all(17,id)
		elseif b == 4 then
			all(18,id)
		elseif b == 5 then
			all(19,id)
		elseif b == 6 then
			all(20,id)
		elseif b == 7 then
			all(21,id)
		elseif b == 8 then
			page(id,2,8,14)
		elseif b == 9 then
			page(id,4,22,28)
		end
	elseif t == "Maps Page 4" then
		if b == 1 then
			all(22,id)
		elseif b == 2 then
			all(23,id)
		elseif b == 3 then
			all(24,id)
		elseif b == 4 then
			all(25,id)
		elseif b == 5 then
			all(26,id)
		elseif b == 6 then
			all(27,id)
		elseif b == 7 then
			all(28,id)
		elseif b == 8 then
			page(id,3,15,21)
		elseif b == 9 then
			page(id,5,29,35)
		end
	elseif t == "Maps Page 5" then
		if b == 1 then
			all(29,id)
		elseif b == 2 then
			all(30,id)
		elseif b == 3 then
			all(31,id)
		elseif b == 4 then
			all(32,id)
		elseif b == 5 then
			all(33,id)
		elseif b == 6 then
			all(34,id)
		elseif b == 7 then
			all(35,id)
		elseif b == 8 then
			page(id,4,22,28)
		elseif b == 9 then
			page(id,6,36,42)
		end
	elseif t == "Maps Page 6" then
		if b == 1 then
			all(36,id)
		elseif b == 2 then
			all(37,id)
		elseif b == 3 then
			all(38,id)
		elseif b == 4 then
			all(39,id)
		elseif b == 5 then
			all(40,id)
		elseif b == 6 then
			all(41,id)
		elseif b == 7 then
			all(42,id)
		elseif b == 8 then
			page(id,5,29,35)
		elseif b == 9 then
			page(id,7,43,49)
		end
	elseif t == "Maps Page 7" then
		if b == 1 then
			all(43,id)
		elseif b == 2 then
			all(44,id)
		elseif b == 3 then
			all(45,id)
		elseif b == 4 then
			all(46,id)
		elseif b == 5 then
			all(47,id)
		elseif b == 6 then
			all(48,id)
		elseif b == 7 then
			all(49,id)
		elseif b == 8 then
			page(id,6,36,42)
		elseif b == 9 then
			page(id,8,50,56)
		end
	elseif t == "Maps Page 8" then
		if b == 1 then
			all(50,id)
		elseif b == 2 then
			all(51,id)
		elseif b == 3 then
			all(52,id)
		elseif b == 4 then
			all(53,id)
		elseif b == 5 then
			all(54,id)
		elseif b == 6 then
			all(55,id)
		elseif b == 7 then
			all(56,id)
		elseif b == 8 then
			page(id,7,43,49)
		elseif b == 9 then
			page(id,9,57,63)
		end
	elseif t == "Maps Page 9" then
		if b == 1 then
			all(57,id)
		elseif b == 2 then
			all(58,id)
		elseif b == 3 then
			all(59,id)
		elseif b == 4 then
			all(60,id)
		elseif b == 5 then
			all(61,id)
		elseif b == 6 then
			all(62,id)
		elseif b == 7 then
			all(63,id)
		elseif b == 8 then
			page(id,8,50,56)
		elseif b == 9 then
			page(id,10,64,64) --
		end
	elseif t == "Maps Page 10" then
		if b == 1 then
			all(64,id)
		elseif b == 2 then --
			page(id,9,57,63)
		elseif b == 3 then --
			page(id,1,1,7) 
		end
	elseif t == "NUKE SELF" then
		if player(id,"health") > 0 then
		if b == 1 then
			if score[id] >= nukereq[1] then
				explosion(id,nukesize[1],nukepwr[1])
				exp1(id,nukereq[1])
			end
		elseif b == 2 then
			if score[id] >= nukereq[2] then
				explosion(id,nukesize[2],nukepwr[2])
				exp1(id,nukereq[2])
			end
		elseif b == 3 then
			if score[id] >= nukereq[3] then
				explosion(id,nukesize[3],nukepwr[3])
				exp1(id,nukereq[3])
			end
		elseif b == 4 then
			if score[id] >= nukereq[4] then
				explosion(id,nukesize[4],nukepwr[4])
				explosion(id,nukesize[4],nukepwr[4])
				explosion(id,nukesize[4],nukepwr[4])
				explosion(id,nukesize[4],nukepwr[4])
				exp1(id,nukereq[4])
			end
		elseif b == 5 then
			if score[id] >= nukereq[5] then
				explosion(id,nukesize[5],nukepwr[5])
				explosion(id,nukesize[5],nukepwr[5])
				explosion(id,nukesize[5],nukepwr[5])
				explosion(id,nukesize[5],nukepwr[5])
				explosion(id,nukesize[5],nukepwr[5])
				explosion(id,nukesize[5],nukepwr[5])
				explosion(id,nukesize[5],nukepwr[5])
				explosion(id,nukesize[5],nukepwr[5])
				explosion(id,nukesize[5],nukepwr[5])
				explosion(id,nukesize[5],nukepwr[5])
				explosion(id,nukesize[5],nukepwr[5])
				exp1(id,nukereq[5])
			end
		elseif b == 6 then
			if score[id] >= nukereq[6] then
				explosion(id,nukesize[6],nukepwr[6])						explosion(id,nukesize[6],nukepwr[6])
				explosion(id,nukesize[6],nukepwr[6])
				explosion(id,nukesize[6],nukepwr[6])
				explosion(id,nukesize[6],nukepwr[6])
				explosion(id,nukesize[6],nukepwr[6])
				explosion(id,nukesize[6],nukepwr[6])
				explosion(id,nukesize[6],nukepwr[6])
				explosion(id,nukesize[6],nukepwr[6])
				explosion(id,nukesize[6],nukepwr[6])
				explosion(id,nukesize[6],nukepwr[6])
				exp1(id,nukereq[6])
			end
		elseif b == 7 then
			if score[id] >= nukereq[7] then
				explosion(id,nukesize[7],nukepwr[7])
				explosion(id,nukesize[7],nukepwr[7])
				explosion(id,nukesize[7],nukepwr[7])
				explosion(id,nukesize[7],nukepwr[7])
				explosion(id,nukesize[7],nukepwr[7])
				explosion(id,nukesize[7],nukepwr[7])
				explosion(id,nukesize[7],nukepwr[7])
				explosion(id,nukesize[7],nukepwr[7])
				explosion(id,nukesize[7],nukepwr[7])
				explosion(id,nukesize[7],nukepwr[7])
				explosion(id,nukesize[7],nukepwr[7])
				explosion(id,nukesize[7],nukepwr[7])
				exp1(id,nukereq[7])
			end
		elseif b == 8 then
			if score[id] >= nukereq[8] then
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				explosion(id,nukesize[8],nukepwr[8])
				exp1(id,nukereq[8])
			end
		elseif b == 9 then
			if score[id] >= nukereq[9] then
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				explosion(id,nukesize[9],nukepwr[9])
				exp1(id,nukereq[9])
				parse("kill")
			end
		end
		else
		msg2(id,"You must be alive!@C")
		end
	end
end
			

addhook("minute","msglolllll")
function msglolllll(id)
	msg("[SERVER]Script created by Forerunner , USGN : 44059")
	msg("Thanks For Playing!")
	msg("Download From : unrealsoftware.de
end

addhook("join","msglollllla")
function msglollllla(id)
	msg2(id,""..player(id,"name").." Welcome To ZM C4")
	msg2(id,"USGN : "..player(id,"usgn").."")
	msg2(id,"IP : "..player(id,"ip").."")
end

addhook("startround","starsa")
function starsa(id)
	parse("bot_add_t")
	parse("bot_add_t")
	parse("bot_add_t")
	parse("bot_add_t")
	parse("bot_add_t")
	parse("bot_add_t")
	parse("bot_add_ct")
	parse("bot_add_ct")
end

addhook("spawn","asldjaslkf")
function asldjaslkf(id)
	parse("equip "..id.." 74")
end

addhook("endround","endsa")
function endsa(id)
	parse("bot_remove_t")
	parse("bot_remove_t")
	parse("bot_remove_t")
	parse("bot_remove_t")
	parse("bot_remove_t")
	parse("bot_remove_t")
	parse("bot_remove_ct")
	parse("bot_remove_ct")
end

dofile("sys/lua/build.lua")

Thank You

how to use code mann??
i really don't know

1
test code man
edited 3×, last 18.02.15 01:30:56 pm

old Re: I Have Pr0bl3m With C4 Script

Marcell
Super User Off Offline

Quote
Fixed and tested!

Save it(ANSI)

Spoiler >
edited 5×, last 12.03.14 05:02:48 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview