English Lua Scripts/Questions/Help

6,770 replies
Goto Page
To the start Previous 1 2 ... 299 300 301 ... 338 339 Next To the start
01.11.10 02:09:24 pm
Up
avander
User
Offline Off
Hello all i need an admin script because i can't make lua's

if u or somebody can help me pls pm me.
thx
01.11.10 02:25:27 pm
Up
FASTDIE
User
Offline Off
search in google cs2d admin panel or amx2d
01.11.10 04:44:29 pm
Up
ManuCrazy
User
Offline Off
Hi Guys
yesterday I was rewriting the script for glow (sample)
for use on my server
however, gave an error that could not identify
if you can take a look I thank

(The error is {LUA ERROR: sys/lua/glowbymc.lua:11: ')' expected (to close '(' at line 10) near 'imagealpha'}

the script looks like this

Code:
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
addhook("say","ad.glow")
function ad.glow(id,txt)
         if(txt=="!glow red") then
         freeimage(id)
         id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
         imagescale(id1,1,1)
         imageblend(id1,1
         imagealpha(id1,0.7)
         imagecolor(id1,255,0,0)
          end
         if(txt=="!glow blue") then
         freeimage(id)
         id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
         imagescale(id1,1,1)
         imageblend(id1,1
         imagealpha(id1,0.7)
         imagecolor(id1,0,0,255)
          end         
         if(txt=="!glow green") then
         freeimage(id)
         id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
         imagescale(id1,1,1)
         imageblend(id1,1
         imagealpha(id1,0.7)
         imagecolor(id1,0,255,0)
          end
         if(txt=="!glow yellow") then
         freeimage(id)
         id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
         imagescale(id1,1,1)
         imageblend(id1,1
         imagealpha(id1,0.7)
         imagecolor(id1,255,220,0)
          end
         if(txt=="!glow white") then
         freeimage(id)
         id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
         imagescale(id1,1,1)
         imageblend(id1,1
         imagealpha(id1,0.7)
         imagecolor(id1,192,192,192)
          end
         if(txt=="!glow red") then
         freeimage(id)
         id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
         imagescale(id1,1,1)
         imageblend(id1,1
         imagealpha(id1,0.7)
         imagecolor(id1,255,0,0)
          end
         if(txt=="!glow purple") then
         freeimage(id)
         id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
         imagescale(id1,1,1)
         imageblend(id1,1
         imagealpha(id1,0.7)
         imagecolor(id1,128,0,128)
          end       
         if(txt=="!glow pink") then
         freeimage(id)
         id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
         imagescale(id1,1,1)
         imageblend(id1,1
         imagealpha(id1,0.7)
         imagecolor(id1,255,0,255)
          end                 
         if(txt=="!glow bblue") then
         freeimage(id)
         id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
         imagescale(id1,1,1)
         imageblend(id1,1
         imagealpha(id1,0.7)
         imagecolor(id1,0,255,255)
          end
end


Thanks'
Potatos For All cookies
IMG:http://img535.imageshack.us/img535/3258/unrealfan.png
IMG:http://img689.imageshack.us/img689/659/an1r.png
IMG:http://img545.imageshack.us/img545/9950/lolzmybar.png
01.11.10 05:03:15 pm
Up
Loooser
User
Offline Off
try this

Code:
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
addhook("say","ad.glow")
function ad.glow(id,txt)
if(txt=="!glow red") then
freeimage(id)
id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
imagescale(id1,1,1)
imageblend(id1,1)
imagealpha(id1,0.7)
imagecolor(id1,255,0,0)
end
if(txt=="!glow blue") then
freeimage(id)
id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
imagescale(id1,1,1)
imageblend(id1,1)
imagealpha(id1,0.7)
imagecolor(id1,0,0,255)
end
if(txt=="!glow green") then
freeimage(id)
id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
imagescale(id1,1,1)
imageblend(id1,1)
imagealpha(id1,0.7)
imagecolor(id1,0,255,0)
end
if(txt=="!glow yellow") then
freeimage(id)
id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
imagescale(id1,1,1)
imageblend(id1,1)
imagealpha(id1,0.7)
imagecolor(id1,255,220,0)
end
if(txt=="!glow white") then
freeimage(id)
id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
imagescale(id1,1,1)
imageblend(id1,1)
imagealpha(id1,0.7)
imagecolor(id1,192,192,192)
end
if(txt=="!glow red") then
freeimage(id)
id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
imagescale(id1,1,1)
imageblend(id1,1)
imagealpha(id1,0.7)
imagecolor(id1,255,0,0)
end
if(txt=="!glow purple") then
freeimage(id)
id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
imagescale(id1,1,1)
imageblend(id1,1)
imagealpha(id1,0.7)
imagecolor(id1,128,0,128)
end
if(txt=="!glow pink") then
freeimage(id)
id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
imagescale(id1,1,1)
imageblend(id1,1)
imagealpha(id1,0.7)
imagecolor(id1,255,0,255)
end
if(txt=="!glow bblue") then
freeimage(id)
id1=image("gfx/sprites/flare2.bmp",0,0,100+id)
imagescale(id1,1,1)
imageblend(id1,1)
imagealpha(id1,0.7)
imagecolor(id1,0,255,255)
end
end

you forgot at each image blend to close it with ')'
IMG:http://i45.tinypic.com/saus1e.jpg
01.11.10 05:43:02 pm
Up
HaRe
User
Offline Off
Hikaru has written:
How i can download the !broadcast command script? i can't acess amx2d webpage

When i type !broadcast and put a message everyone can see it

i'm looking for that script


Code:
1
2
3
4
5
6
addhook("say","broadcast") function broadcast(id,t)
     if string.sub(t,1,10) == "!broadcast" then
          local bt = string.sub(t,12)
          msg(player(id,"name").."(BROADCAST): "..bt)
     end
end
w0w im so eXotiK
01.11.10 06:44:09 pm
Up
Kurumi
User
Offline Off
1.is there a script that makes non turnable off silenceer for usp or m4a1?
2.Is there a script that triggers something when i shoot from non silenced usp or m4a1?
Uhm... Hello
01.11.10 07:04:21 pm
Up
kNedLiik
User
Offline Off
hey guys I'm making new game mode for a friend and I need help with one part ..
How to make that if someone want join CT he must be usgn logged in but if he want join T he don't need be usgn logged but can join T. If someone no usgn logged try to join CT he can't . But if someone logged join T he can ?
IMG:http://i52.tinypic.com/14nk75z.png
IMG:http://img263.imageshack.us/img263/3100/userbar828775.gif
01.11.10 07:04:58 pm
Up
Banaan
User
Offline Off
kato999 has written:
1.is there a script that makes non turnable off silenceer for usp or m4a1?
2.Is there a script that triggers something when i shoot from non silenced usp or m4a1?


1. Do you mean that people can't switch it off? Then they should turn it on first. Otherwise return 1 on the attack2 hook if weapon is usp or m4a1.
2. idk
01.11.10 07:20:09 pm
Up
Loooser
User
Offline Off
kato999 you can make that only none silenced wepons can work
IMG:http://i45.tinypic.com/saus1e.jpg
01.11.10 07:28:17 pm
Up
kNedLiik
User
Offline Off
I need script for that , only usgn logged in players can join CT pls .
IMG:http://i52.tinypic.com/14nk75z.png
IMG:http://img263.imageshack.us/img263/3100/userbar828775.gif
01.11.10 07:32:39 pm
Up
Fehu
User
Offline Off
kNedLiik has written:
I need script for that , only usgn logged in players can join CT pls .


Code:
1
2
3
4
5
6
7
8
addhook("spawn","ct_usgn")
function ct_usgn(id)
     if player(id,"team")==2 then
          if player(id,"usgn")>=0 then
               parse("maket "..id)
          end
     end
end


i dont test this...
IMG:http://www.flashflashrevolution.com/profile/newsiggy/Fehu/stardust/0/0-1-2-3-4-5.png
01.11.10 07:42:00 pm
Up
hyerli
User
Offline Off
please in lua scripts how can i join ct ?? this is make me crazy!
i like games
01.11.10 07:43:24 pm
Up
Loooser
User
Offline Off
to make someone ct:
parse("makect <id>")
IMG:http://i45.tinypic.com/saus1e.jpg
01.11.10 07:43:42 pm
Up
kNedLiik
User
Offline Off
Trololol but I still cant join CT when im logged in usgn
IMG:http://i52.tinypic.com/14nk75z.png
IMG:http://img263.imageshack.us/img263/3100/userbar828775.gif
01.11.10 07:46:49 pm
Up
hyerli
User
Offline Off
loooser, User
to make someone ct:
parse("makect <id>")


do not work in lua scripts pls give me idea
i like games
01.11.10 07:48:50 pm
Up
kNedLiik
User
Offline Off
Fehuziom has written:
kNedLiik has written:
I need script for that , only usgn logged in players can join CT pls .


Code:
1
2
3
4
5
6
7
8
addhook("spawn","ct_usgn")
function ct_usgn(id)
     if player(id,"team")==2 then
          if player(id,"usgn")>=0 then
               parse("maket "..id)
          end
     end
end


i dont test this...


Someone pls fix it??
Still making me T when im logged in usgn
IMG:http://i52.tinypic.com/14nk75z.png
IMG:http://img263.imageshack.us/img263/3100/userbar828775.gif
01.11.10 08:00:36 pm
Up
Fehu
User
Offline Off
kNedLiik has written:
Fehuziom has written:
kNedLiik has written:
I need script for that , only usgn logged in players can join CT pls .


Code:
1
2
3
4
5
6
7
8
addhook("spawn","ct_usgn")
function ct_usgn(id)
     if player(id,"team")==2 then
          if player(id,"usgn")>=0 then
               parse("maket "..id)
          end
     end
end


i dont test this...


Someone pls fix it??
Still making me T when im logged in usgn


Try write in game "rank"...if you have your rank statistic you are logged...
IMG:http://www.flashflashrevolution.com/profile/newsiggy/Fehu/stardust/0/0-1-2-3-4-5.png
01.11.10 08:03:54 pm
Up
kNedLiik
User
Offline Off
I have the rank and I still cant be CT
I'm trying to fix it someone will help?
edited 1×, last 01.11.10 08:04:36 pm
IMG:http://i52.tinypic.com/14nk75z.png
IMG:http://img263.imageshack.us/img263/3100/userbar828775.gif
01.11.10 08:04:19 pm
Up
HaRe
User
Offline Off
kNedLiik has written:
Fehuziom has written:
kNedLiik has written:
I need script for that , only usgn logged in players can join CT pls .


Code:
1
2
3
4
5
6
7
8
addhook("spawn","ct_usgn")
function ct_usgn(id)
     if player(id,"team")==2 then
          if player(id,"usgn")>=0 then
               parse("maket "..id)
          end
     end
end


i dont test this...


Someone pls fix it??
Still making me T when im logged in usgn


Code:
1
2
3
4
5
6
7
8
9
10
addhook("team","joinct") function joinct(id,team)
     if team==2 then
          if (player(id,"usgn")>0) then
               --
          else
               msg2(id,"You need to be US logged in")
               return 1 -- Dosent allows
          end
     end
end
w0w im so eXotiK
01.11.10 08:06:49 pm
Up
kNedLiik
User
Offline Off
Thx hare work great
IMG:http://i52.tinypic.com/14nk75z.png
IMG:http://img263.imageshack.us/img263/3100/userbar828775.gif
To the start Previous 1 2 ... 299 300 301 ... 338 339 Next To the start