Scripts
script who change your crosshair when a player is near .


mapstartalways = [sleep 100 [control;dbgstenc 2]]
control = [if ( (|| (strstr $conline "playermodels") (strstr $conline "weapons")) ) [loadcrosshair teammate.png;sleep 100 [control]][sleep 100 [control;loadcrosshair default.png]]]
Thanks given by:
My brilliant cubers, i have a challenge for you. I suck at long distance battle (and short too) so I've been practicing and thinking in new strategies to overcome this painful situation. So, I thought maybe you can create a script to change the size of the crosshair when your enemy is far way.

E.g. your crosshairsize is 13. when your enemy is near you it still is 13. However, when you aim your enemy who is far away (for instance in douze, if you are in one of the corridors and your enemy is on the other one [dunno how many cubes those are) the crosshairsize sets (automatically) to 8. Of course then, if you are not aiming it goes back to 13 again.

Hope you can help this poor soul.

GL and HF :-D
Thanks given by:
(10 Dec 12, 11:25PM)EndGame Wrote: .....

I actually think this isn't a bad idea. it would make for easier view, if the crosshair gets smaller when the enemy is far away. that way the x-hair doesn't impede aim by being too large. I dunno if this is a big enough advantage to bother with though.....
Thanks given by:
I'm pretty sure that a script like that isn't possible using CubeScript.
Thanks given by:
I hate to ask (and I've tried snooping around for this already, with no luck), but does anyone have the script that rapidly changes your skins? It was in the rave mod a while back, even had a "Ghost" gun effect. But... it's not in the rave package anymore...

Your help would be appreciated.
Thanks given by:
(11 Dec 12, 11:00AM).45|D3M0NW0LF Wrote: . . . the script that rapidly changes your skins?

http://akimbo.in/forum/viewtopic.php?f=12&t=1077
Thanks given by:
Thank you so much blueberry!
Thanks given by:
Yeah nice script :) ty
Thanks given by:
(11 Dec 12, 05:41AM)Orynge Wrote: I'm pretty sure that a script like that isn't possible using CubeScript.

T_T I'm sure you can do it :-D
Thanks given by:
bind MOUSE1 [attack; crosshairsize 15; onrelease [crosshairsize 25]]
Thanks given by:
oups ^^
Thanks given by:
888 i'm using your script for muting your own weapon, really good thanks!
Thanks given by:
Lol
Auto spaw
onKill = [if (= $arg2 (player1 cn)) [sleep 4000 [attack]]]

edit :^^
Thanks given by:
Script who indicate how many player are dead .
The script work only if you begin the match (clan match)^^
I improve this script after ..

mortcla = 0
mortrvsf = 0

onKill = [if (player $arg2 team) [+= mortrvsf 1][+= mortcla 1]]
onSpawn = [if (player $arg1 team) [-= mortrvsf 1][-= mortcla 1]]
mapstartalways = [sleep 100 [mortcla = 0;mortrvsf = 0;affichage]]

affichage = [hudecho (c 3) $mortcla - (c 1) $mortrvsf ;sleep 3000 [affichage]]
Thanks given by:
This won't benefit anyone, but it's still rather funny if timed right in an intense game... xD.

/bind "6" [say "HE'S LEFT!!!";sleep 1200 [say "NO WAIT, HE'S RIGHT!"];sleep 2400 [say "LEFT!!!"]; sleep 3000 [say "RIGHT!"]; sleep 4000 [say "ZOMFG I DON'T KNOW ANYMORE!!! WAAAH!!!"]]

Another completely pointless script that doesn't do much but remind you what you voted for.

/bind f1 [vote 1; echo (c J) (c b) "You voted YES"]
/bind f2 [vote 2; echo (c B) (c b) "You voted NO"]

Hope you enjoy my homemade script/binds. Lolol, I might make more as time goes along.
Thanks given by:
(17 Dec 12, 05:23AM).45|D3M0NW0LF Wrote: This won't benefit anyone, but it's still rather funny if timed right in an intense game... xD.

/bind "6" [say "HE'S LEFT!!!";sleep 1200 [say "NO WAIT, HE'S RIGHT!"];sleep 2400 [say "LEFT!!!"]; sleep 3000 [say "RIGHT!"]; sleep 4000 [say "ZOMFG I DON'T KNOW ANYMORE!!! WAAAH!!!"]]

Lol
Thanks given by:
Best script ever.
alias thisiscool [thisiscool]
Thanks given by:
(09 Jul 10, 10:29AM)MacAdresS Wrote: //-- rolldie command to see who goes first in matches
alias rolldie [ if (&& (> (listlen $arg1) 0) (> (listlen $arg2) 0) ) [dieteams1 = $arg1; dieteams2 = $arg2] [dieteams1 = CLA; dieteams2 = RVSF]; if (rnd 2) [dieteams = $dieteams1] [dieteams = $dieteams2]; sleep 100 [say Random Die Roll - team $dieteams was chosen!]]

by DES|R4zor
haha i like that one, thank you! :)
Thanks given by:
Little script for the next version:

[cubescript]// do-while loops for cubescript by Bukz
// Requires AC 1.2.0.0 or better.
// Syntax:
// do [
// // body of code here
// // can span multiple lines/statements
// ] while [ (expression) ]

do = [
targ1 = $arg1
targ2 = $arg2
targ3 = $arg3

if (strcmp $targ2 while) [
execute $targ1
tmpExpression = (concat [bool =] $targ3)
execute $tmpExpression
if (!= $bool 0) [
sleep 0 [ do $targ1 while $targ3 ]
]
]
][/cubescript]

Example:

[cubescript]testdo = [
i = 0
do [
+= i 1
echo $i
] while [ (< $i 10) ] // brackets are needed
]

// Then execute the /testdo command in-game to see the output.

// Remember a do-while loop executes at least once no matter what,
// and the expression is evaluated AFTER every iteration, therefore
// the /testdo command should output the numbers 1 through 10 on the
// console. Brackets "[]" are needed around the expression argument
// for the do-while loop to work properly.[/cubescript]
Thanks given by:
Is there some script to render exact the glib that i want.I've replaced the original models with body parts (a head, leg).But sometimes scatters two heads.
Thanks given by:
There is now a V1.2 script section on AKIMBO.

Please make sure they are truly compatible with next version, if unsure have them double checked before posting, thank you.
Thanks given by:
On-The-Fly sensitivity script that allows you to hold Q and scroll to change your sensitivity, while preserving the editing functions for holding Q and scrolling (holding Q and scrolling while "in-game" or spectating will change sensitivity, but while in edit mode, will do the normal edit function)

alias delta_game_1 [
    sensitivity (+f $sensitivity (*f 0.05 $arg1))
    echo (concat "Sensitivity =" $sensitivity)
]
alias delta_spect_1 delta_game_1
bind Q [domodifier 1]
Thanks given by:
This script work in private match .
He inform the other players when a player is missing and open the mastermode automatically
If every player use this script .You block the game in waiting the missing

newmenu paused
menuitem (_ "Pause")    "say Pause :A player is missing"
menuitem (_ "???")    "say ???"

curplay = [
  numpl = 0
  loop npl 21 [
    if (! (strcmp (findpn $npl) [])) [
      += numpl 1
    ]
  ]
  result $numpl
]


bind o [mastermode 1]
checking = [if (curmastermode) [curplay;if (= $numpl $old ) [sleep 1000 [metro]][block]]]
mapstartalways = [old = 0;if (curmastermode) [curplay;old = $numpl;sleep 1000 [checking]]]

block = [say paused;mastermode 0;showmenu paused]
Thanks given by:
Does anyone know if It's possible to make a script wich could copy the IP of a player, after a "whois" and then copy it in a text document with the name of the player using the IP

So I could have a document to know who is who ^^

Of course I could do it manually but I'm too lazy, so I'm asking you :)

Thanks.
Thanks given by:
I don't think CS has file output ability yet.
Thanks given by:
You could store the IPs/names into a single cubescript alias and make sure it gets stored into /config/saved.cfg upon quitting AC.

Other than that, like Felix says there is no way to write text to a file with cubescript.
Thanks given by:
Also AFAIK you can't make cubescript copy stuff into your clipboard.
Thanks given by:
Hmm Ok, will do it manually ^^

Thanks
Thanks given by:
Please delete this post
Thanks given by:
Please deleting this post
Thanks given by: