English Script Change Request

5 replies
Goto Page
To the start Previous 1 Next To the start
28.08.12 10:11:40 pm
Up
Lorenzz
User
Offline Off
This script is not mine, i'm saying this now so the owner (Which, to be sincere, i didn't asked permission) and you guys say i'm claiming as mine, but anyway..

This script=
http://unrealsoftware.de/files_show.php?file=3808
Is an awesome Laser Aim script, i really liked it, but to me, there's one problem.
I'm using the Admin Script Beta 3.0, or something like this, and for those who use it, know that F4 is that painting thing, and in the Laser Aim script, F4 enables it, and the Painting thing is toggleable, so, i'd like to ask something for you fellow professional scripters. I'd like you to set the key in the Laser Aim script, from F4 to F6, since F5 is screenshot. To use is good in my servers. Anyway, thanks guys for the help! And sorry for the long text.
I like to play CS2d,Sandbox games,and more
28.08.12 10:18:03 pm
Up
EngiN33R
Moderator
Offline Off
Only three serveraction keys can be bound at a given time, which, by default, are F2, F3 and F4. You'll have to either remove one of the features or make one of them usable by different means.
edited 1×, last 29.08.12 07:50:14 am
I code, therefore I exist. | Visit my blog for Lua tips and other interesting info
28.08.12 10:23:18 pm
Up
Lorenzz
User
Offline Off
Aw.. I understood now.. So can you convert this to a text triggered command? Like, it toggles when i say !laser ?
I like to play CS2d,Sandbox games,and more
28.08.12 11:00:42 pm
Up
Powermonger
User
Offline Off
user EngiN33R has written:
Only three serveraction keys can be bound at a given time, which, by default, are F2, F3 and F4. You'll have to either remove one of the features or make one of them usable by different means.


BUT always remember that you can do a trick 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
set = 1

addhook("serveraction","serva")
function serva(id,sa)
     if sa == 1 then
          if set==1 then
               set = 2
          elseif set==2 then
               set = 3
          elseif set==3 then
               set = 1
          end
     end
     if sa == 2 then
          if set==1 then
               menu1(id)
          elseif set==2 then
               menu3(id)
          elseif set==3 then
               menu5(id)
          end
     end
     if sa == 3 then
          if set==1 then
               menu2(id)
          elseif set==2 then
               menu4(id)
          elseif set==3 then
               menu6(id)
          end
     end
end


F2 => changes set values
set1 => menus1 & menus2
set2 => menus3 & menus4
set3 => menus5 & menus6

F3 => menu1 or menu3 or menu5

F4 => menu2 or menu4 or menu6


Now you'll have 6 menus, but you can do unlimited menus, by making more set values.
28.08.12 11:28:27 pm
Up
Lorenzz
User
Offline Off
user Powermonger has written:
user EngiN33R has written:
Only three serveraction keys can be binded at a given time, which, by default, are F2, F3 and F4. You'll have to either remove one of the features or make one of them usable by different means.


BUT always remember that you can do a trick 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
set = 1

addhook("serveraction","serva")
function serva(id,sa)
     if sa == 1 then
          if set==1 then
               set = 2
          elseif set==2 then
               set = 3
          elseif set==3 then
               set = 1
          end
     end
     if sa == 2 then
          if set==1 then
               menu1(id)
          elseif set==2 then
               menu3(id)
          elseif set==3 then
               menu5(id)
          end
     end
     if sa == 3 then
          if set==1 then
               menu2(id)
          elseif set==2 then
               menu4(id)
          elseif set==3 then
               menu6(id)
          end
     end
end


F2 => changes set values
set1 => menus1 & menus2
set2 => menus3 & menus4
set3 => menus5 & menus6

F3 => menu1 or menu3 or menu5

F4 => menu2 or menu4 or menu6


Now you'll have 6 menus, but you can do unlimited menus, by making more set values.



Well, that's great! But i'd still like if you guys could convert the Laser Aim script for the toggle say message. So i could give a way to bind it in the Admin script menu.
I like to play CS2d,Sandbox games,and more
29.08.12 07:53:08 am
Up
EngiN33R
Moderator
Offline Off
@user Powermonger: That's true, but then again, you'll have to have a way of changing the set value.

@user Lorenzz: To modify user archmage's script, you'll have to have permission from him. As I recall, you wrote that you didn't ask for it. You should.
I code, therefore I exist. | Visit my blog for Lua tips and other interesting info
To the start Previous 1 Next To the start