I tried to do this well before asking for help, but it was impossible for me at this time.
In advance thanks !
Scripts
Add tabs to the menu hc admin script
Add tabs to the menu hc admin script
1

cs2d_is_a_Gem has writtensc = "2" -- 0 = f2 , 1 = f3 , 2 = f4 --
addhook("serveraction","redirect")
function redirect(id,rd)
if (rd == 3) then
rsm(id)
end
end
sc = "2" -- 0 = f2 , 1 = f3 , 2 = f4 --
serveraction hook passes a number(action) to signal the key that was pressed. Also the comment at the end is wrong. It should be F2=1, F3=2, F4=3addhook("serveraction","redirect") redirectto the
serveraction hook. This way whenever a server action is performed(a player presses either of F2-F4) it calls the function with 2 parameters: the player id and the server action key pressed F2=1, F3=2, F4=3function redirect(id,rd)
if (rd == 3) then
addhook("serveraction","redirect")
function redirect(id,rd)
if (rd == 1) then
rsm(id)
end
end
Qb: I think your answer has nothing to do with my question anyways thank you for trying to help me.
Qb: yes, este codigo fue creado por @
§4.3 - Only English/German (depending on section) is allowed hc.add_menu_command("Other Servers", rsm, hc.SHOW_STATS_TO_ME_LEVEL, hc.COMMAND_MENU_KEY)
Qb: If I can share the code with you and everyone else,
Yunu5: And shared with us.
1
