A website for every gema-assaultcube fan
 
HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  

Share | 
 

 Force Script

View previous topic View next topic Go down 
AuthorMessage
Nirude
Admin


Messages : 176
Joined/Date d'inscription : 2010-04-21

Gema stats
farthest jump: 38

PostSubject: 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
Back to top Go down
View user profile http://gema.forumactif.com
CiD



Messages : 12
Joined/Date d'inscription : 2010-06-12

Gema stats
farthest jump:

PostSubject: Slightly less confusing version   Sat Jun 12, 2010 12:34 pm

That's quite a convoluted way of writing that Smile

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 Smile
Back to top Go down
View user profile
|HP|
Admin


Messages : 225
Joined/Date d'inscription : 2010-06-01

Gema stats
farthest jump: MAX

PostSubject: Re: Force Script   Sat Jun 12, 2010 12:35 pm

thx again cid
Back to top Go down
View user profile
pwned|SK|



Messages : 38
Joined/Date d'inscription : 2010-05-31

Gema stats
farthest jump:

PostSubject: Re: Force Script   Sat Jun 12, 2010 2:18 pm

what does this do?
Back to top Go down
View user profile http://skforum.forumotion.com
Nirude
Admin


Messages : 176
Joined/Date d'inscription : 2010-04-21

Gema stats
farthest jump: 38

PostSubject: 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 Smile
Back to top Go down
View user profile http://gema.forumactif.com
pwned|SK|



Messages : 38
Joined/Date d'inscription : 2010-05-31

Gema stats
farthest jump:

PostSubject: Re: Force Script   Sat Jun 12, 2010 5:32 pm

lol sweet script
Back to top Go down
View user profile http://skforum.forumotion.com
TheKiller



Messages : 45
Joined/Date d'inscription : 2010-05-05
Age : 21
Location/Localisation : France

Gema stats
farthest jump: 37 cubes

PostSubject: 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 Wink
Back to top Go down
View user profile
Nirude
Admin


Messages : 176
Joined/Date d'inscription : 2010-04-21

Gema stats
farthest jump: 38

PostSubject: 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...)
Back to top Go down
View user profile http://gema.forumactif.com
TheKiller



Messages : 45
Joined/Date d'inscription : 2010-05-05
Age : 21
Location/Localisation : France

Gema stats
farthest jump: 37 cubes

PostSubject: 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...
Back to top Go down
View user profile
Nirude
Admin


Messages : 176
Joined/Date d'inscription : 2010-04-21

Gema stats
farthest jump: 38

PostSubject: 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
Back to top Go down
View user profile http://gema.forumactif.com
TheKiller



Messages : 45
Joined/Date d'inscription : 2010-05-05
Age : 21
Location/Localisation : France

Gema stats
farthest jump: 37 cubes

PostSubject: 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.
Back to top Go down
View user profile
Nirude
Admin


Messages : 176
Joined/Date d'inscription : 2010-04-21

Gema stats
farthest jump: 38

PostSubject: 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 Smile
Back to top Go down
View user profile http://gema.forumactif.com
|HP|
Admin


Messages : 225
Joined/Date d'inscription : 2010-06-01

Gema stats
farthest jump: MAX

PostSubject: 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
Back to top Go down
View user profile
Nirude
Admin


Messages : 176
Joined/Date d'inscription : 2010-04-21

Gema stats
farthest jump: 38

PostSubject: Re: Force Script   Tue Jun 15, 2010 4:51 am

Okok, so i don't do it lol Smile
Back to top Go down
View user profile http://gema.forumactif.com
Sponsored content




PostSubject: Re: Force Script   Today at 2:59 am

Back to top Go down
 
Force Script
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Script from the episodes
» Eva-Force Path to Brutal Legend winning it all (my 2nd brute)!!
» who owns eva-force?
» Star Wars Force Unleashed 2
» New Greasemonkey script

Permissions in this forum:You cannot reply to topics in this forum
gema :: International :: Scripts-
Jump to: