| Force Script | |
|
|
Author | Message |
---|
Nirude Admin
Messages : 176 Joined/Date d'inscription : 2010-04-21
Gema stats farthest jump: 38
| Subject: Force Script Sat Jun 05, 2010 3:31 am | |
| It is an update from Thekiller's force script. |HP| ask me to do this post. 1.cfg - Code:
-
fr-a = 0 fr0 = [ fr-a = 0] fr = [ if (< $fr-a 300)[ fr-a = (+ $fr-a 1); sleep 5000 [fr]; callvote 5 $clientnum; vote 2 ]]
alias force [ ( alias clientnum $arg1 ); ( fr;fr0 )]
2.cfg - Code:
-
alias fr [crouch]
sleep 5001 [exec config/1.cfg; echo "0Ready!"] autoexec.cfg - Code:
-
exec config/1.cfg;
bind f8 [exec config/2.cfg; echo "3Stopped!"]
So you make 1.cfg-2.cfg then just do /force CN and it forces untill you press F8 then it stops and says "Stopped" in red letters then when the script is ready again it will say in green "Ready" its still not very good lol but it works fine.... here is the link with the files if you are lazy http://rghost.net/1769219 | |
|
| |
CiD
Messages : 12 Joined/Date d'inscription : 2010-06-12
Gema stats farthest jump:
| Subject: Slightly less confusing version Sat Jun 12, 2010 12:34 pm | |
| That's quite a convoluted way of writing that I would suggest: - Code:
-
alias force_cn -1; alias forceloop_o [ callvote 5 $force_cn; sleep 5000 forceloop; ] alias forceloop []; alias start_force [ alias forceloop $forceloop_o; forceloop; ] alias stop_force [ alias forceloop []; ] alias force [ if (< $numargs 1) [ echo "Error: FORCE needs a ClientNumber!"; ] [ alias force_cn $arg1; start_force; ] ] bind F8 [ stop_force;echo "Force Stopped!" ]
This works exactly the same as your script, but can all be put into autoexec.cfg | |
|
| |
|HP| Admin
Messages : 226 Joined/Date d'inscription : 2010-06-01
Gema stats farthest jump: MAX
| Subject: Re: Force Script Sat Jun 12, 2010 12:35 pm | |
| | |
|
| |
pwned|SK|
Messages : 38 Joined/Date d'inscription : 2010-05-31
Gema stats farthest jump:
| Subject: Re: Force Script Sat Jun 12, 2010 2:18 pm | |
| | |
|
| |
Nirude Admin
Messages : 176 Joined/Date d'inscription : 2010-04-21
Gema stats farthest jump: 38
| Subject: Re: Force Script Sat Jun 12, 2010 3:25 pm | |
| Ahahah i have made the same thing Cid: a lighter version. @pwned|SK|: it forces a player to change team every 5sec. It is not very useful but it is funny | |
|
| |
pwned|SK|
Messages : 38 Joined/Date d'inscription : 2010-05-31
Gema stats farthest jump:
| Subject: Re: Force Script Sat Jun 12, 2010 5:32 pm | |
| | |
|
| |
TheKiller
Messages : 45 Joined/Date d'inscription : 2010-05-05 Age : 29 Location/Localisation : France
Gema stats farthest jump: 37 cubes
| Subject: Re: Force Script Mon Jun 14, 2010 2:52 pm | |
| Thank you, thanks to you, i understand i'm a so bad coder :/ LOL, no that's realy nice | |
|
| |
Nirude Admin
Messages : 176 Joined/Date d'inscription : 2010-04-21
Gema stats farthest jump: 38
| Subject: Re: Force Script Tue Jun 15, 2010 3:12 am | |
| TheKiller, i don't understand the part with "FR" in your script. What does it mean? (FR: si tu ne sais pas l'expliquer en anglais: PM moi...) | |
|
| |
TheKiller
Messages : 45 Joined/Date d'inscription : 2010-05-05 Age : 29 Location/Localisation : France
Gema stats farthest jump: 37 cubes
| Subject: Re: Force Script Tue Jun 15, 2010 3:21 am | |
| I don't understand whcih part of the script? because you said me "FR" part, but there are "FR" everywhere in this script :p... | |
|
| |
Nirude Admin
Messages : 176 Joined/Date d'inscription : 2010-04-21
Gema stats farthest jump: 38
| Subject: Re: Force Script Tue Jun 15, 2010 3:35 am | |
| fr-a = 0 fr0 = [ fr-a = 0] fr = [ if (< $fr-a 300)[ fr-a = (+ $fr-a 1);
alias fr [crouch]
I don't understand what the uses are of all those commands :s | |
|
| |
TheKiller
Messages : 45 Joined/Date d'inscription : 2010-05-05 Age : 29 Location/Localisation : France
Gema stats farthest jump: 37 cubes
| Subject: Re: Force Script Tue Jun 15, 2010 3:51 am | |
| Ok, so fr is an alias and fr-a a integer.
fr-a = 0 fr0 = [ fr-a = 0] means that the integer fr-a is set to 0 at start and when you launch force script.
Then, there are 2 cases for the f alias : when 1.cfg is used, and when force is active, this alias force the player. But how to stop forcing? So we created a 2.cfg file, where the alias is just crouching, and the force is stopped. Now, the part with : if (< $fr-a 300)[ fr-a = (+ $fr-a 1); HP made it, but i think this is for avoid the infinity force : if the number of force is less than 300, increase this value and force. When this number is 300, it stops forcing. | |
|
| |
Nirude Admin
Messages : 176 Joined/Date d'inscription : 2010-04-21
Gema stats farthest jump: 38
| Subject: Re: Force Script Tue Jun 15, 2010 4:09 am | |
| Ah ok thank you: i will try that: /forceteam cn "number of time" It would be nice | |
|
| |
|HP| Admin
Messages : 226 Joined/Date d'inscription : 2010-06-01
Gema stats farthest jump: MAX
| Subject: Re: Force Script Tue Jun 15, 2010 4:47 am | |
| nirude you dont really need "number of time" ? we tried ... the script came from Nucks idea to abuse cheaters and assholes untill they leave the server pissed ... so you force them and you press the "stop" button when they stopped doing shit or have left the server:D nuck would mostly ban them at the end:D | |
|
| |
Nirude Admin
Messages : 176 Joined/Date d'inscription : 2010-04-21
Gema stats farthest jump: 38
| Subject: Re: Force Script Tue Jun 15, 2010 4:51 am | |
| Okok, so i don't do it lol | |
|
| |
Sponsored content
| Subject: Re: Force Script | |
| |
|
| |
| Force Script | |
|