Forum

> > Trash > [You Pro]How to script
Forums overviewTrash overviewLog in to reply

English [You Pro]How to script

4 replies
To the start Previous 1 Next To the start

closed moved [You Pro]How to script

you pro
BANNED Off Offline

Quote
1-Script Color and adm/co-adm/vip/memper Etc.
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
---- Script By You Pro ----
---- USGN: #148046 ----


list_owner = {xxxxxx}
list_adm = {xxxxxx}
list_vip = {xxxxxx}
list_mod = {xxxxxx}
list_member = {xxxxxx}
list_supermod = {xxxxxx}
list_co-adm = {xxxxxx}


addhook("say", "rankSay")
function rankSay(id, text)
	
	local _, i;
	for _, i in ipairs(list_owner) do
		if (i == player(id, "usgn")) then
			msg("©255000000" .. player(id,"name") .. " [Owner]: " .. text)
			return 1;
		end
	end
	
	for _, i in ipairs(list_adm) do
		if (i == player(id, "usgn")) then
			msg("©255000000" .. player(id,"name") .. " [Admin]: " .. text)
			return 1;
	end	
           	end
                    
	for _, i in ipairs(list_vip) do
		if (i == player(id, "usgn")) then
			msg("©255255166" .. player(id,"name") .. " [Vip]: " .. text)
			return 1;
		end
	end
	
	for _, i in ipairs(list_mod) do
		if (i == player(id, "usgn")) then
			msg("©000255150" .. player(id,"name") .. " [Mod]: " .. text)
			return 1;
		end
	end

	for _, i in ipairs(list_member) do
		if (i == player(id, "usgn")) then
			msg("©170255255" .. player(id,"name") .. " [Member]: " .. text)
			return 1;
		end
	end

	for _, i in ipairs(list_supermod) do
		if (i == player(id, "usgn")) then
			msg("©255128000" .. player(id,"name") .. " [S-Mod]: " .. text)
			return 1;
		end
	end

	for _, i in ipairs(list_coadm) do
		if (i == player(id, "usgn")) then
			msg("©000255000" .. player(id,"name") .. " [Co-Admin]: " .. text)
			return 1;
		end
	end
end

Note : You Can Add Name Like this Co-Admin
Note 2 : You Can Change Color Like this

1
2
3
4
5
6
7
local _, i;
	for _, i in ipairs(list_owner) do
		if (i == player(id, "usgn")) then
			msg("©255000000" .. player(id,"name") .. " [Owner]: " .. text)
			return 1;
		end
	end
You are watching this 255000000
Change Color

2- Weapon Menu

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
addhook("serveraction","yu")
function yu(id,act)
if act == 1 then 
menu(id,"Weapons,P228,Deagie,M3,XM1014,M4A1,SG552,AWP,Tactical Shield")
end
end

addhook("menu","yunu")
function yunu(id,title,button)
if title == "Weapons" then
if button == 1 then
parse("equip "..id.."  4")
elseif button == 2 then
parse("equip "..id.."  3")
elseif button == 3 then
parse("equip "..id.."  10")
elseif button == 4 then
parse("equip "..id.."  11")
elseif button == 5 then
parse("equip "..id.."  32")
elseif button == 6 then
parse("equip "..id.."  31")
elseif button == 7 then
parse("equip "..id.."  36")
elseif button == 8 then
parse("equip "..id.."  41")
end 
end
end

Note : You Can add weapon
You see
1
2
parse("equip "..id.."  4")
elseif button == 2 then
You Can add weapon add id weapon In place 4
and you see
1
(id,"Weapons,P228,Deagie,M3,XM1014,M4A1,SG552,AWP,Tactical Shield")
add (,) and name weapon

old Re: [You Pro]How to script

Kirito2K
User Off Offline

Quote
@user you pro: There is a tutorial for this already , and you done nothing , i think so , part of that code has been made by user Talented Doge , stop this **** please.

@Moderators: PLEASE guys , just give this guy a ban from whole unrealsoftware. -_-"

And another thing @user you pro: please stop making topics which are not needed , you're not even good enought to make a tutorial for scripting , u asked us for weapon menu and armor menu , what now speed menu ?!

old Re: [You Pro]How to script

Rainoth
Moderator Off Offline

Quote
I clicked the thread with the thought "Omg, he's actually going to ask how to script, it's a miracle".
I don't even know anymore...

old Re: [You Pro]How to script

Starkkz
Moderator Off Offline

Quote
In addition to what user Seekay said, your thread does not suit the needs of the community users. You don't seem to have experience in this area so please don't make threads about teaching how to script again, at least until you become part of the average decent coders. If you want to learn how to script then do it from the already existing tutorials.

Closed.
To the start Previous 1 Next To the start
Log in to replyTrash overviewForums overview