English please heellpp my little script

2 replies
Goto Page
To the start Previous 1 Next To the start
Up
DXcaptain
User
Offline Off
when i chose the human class and chose soldier i didn't get any weapons nor did the other classes

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
addhook("serveraction","_serveraction")
function _serveraction(id,act)
     if act == 1 then
     menu(id,"Zombie Elite, Zombie Class, Human Class")
     end
end

addhook("menu","_menu")
function _menu(id,title,but)

     if (title=="Zombie Elite") then
     if(but==1) then
     menu(id,"Zombie Class, Nemesis, Zombie")
     end

     if(but==2) then
     menu(id,"Human Class, Police, Soldier")
     end

     if (title=="Zombie Class") then
     if(but==1) then
     parse ("equip "..id.." 86")
     end

     if(but==2) then
     parse ("equip "..id.." 86")
     end

     if (title=="Human Class") then
     if(but==1) then
     parse ("equip "..id.." 32")
     end

     if(but==2) then
     parse ("equip "..id.." 33")
     end
end
end
end
end
blablabla
27.08.20 03:07:05 pm
Up
Cebra
User
Offline Off
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
-- untested
addhook("serveraction","_serveraction")
function _serveraction(id,act)
     if act == 1 then
          menu(id,"Zombie Elite, Zombie Class, Human Class")
     end
end

addhook("menu","_menu")
function _menu(id,title,but)
     if (title=="Zombie Elite") then
          if (but==1) then
               menu(id,"Zombie Class, Nemesis, Zombie")
          elseif (but==2) then
               menu(id,"Human Class, Police, Soldier")
          end
     elseif (title=="Zombie Class") then
          if(but==1) then
               parse ("equip "..id.." 86")
          elseif(but==2) then
               parse ("equip "..id.." 86")
          end
     elseif (title=="Human Class") then
          if(but==1) then
               parse ("equip "..id.." 32")
          elseif(but==2) then
               parse ("equip "..id.." 33")
          end
     end
end
loading...
27.08.20 03:59:35 pm
Up
DXcaptain
User
Offline Off
@user Cebra:thx
edited 3×, last 28.08.20 04:18:22 am
blablabla
To the start Previous 1 Next To the start