Akimbo countdown/cursecondary script:
Use:
...to enable the countdown.
The cursecondary command will return 9 if you have the akimbo at your disposal, else it will return 1, for the usual pistol.
Random startup messages script:
Use......to enable the script.
You must edit the first alias in the script "random_messages" to include your own personalized messages. These messages must be separated by a space, AND wrapped in quotes "".
[SELECT ALL] Code:
// Got akimbo/akimbo powerup countdown script by DES|Bukz
// Requires tools.cfg
initialize [gotaki akicountdown] 0
add2conloop [
if (= (curweapon) 9) [
if $gotaki [] [gotaki = 1; if (&& (= $akicountdown 1) (!= (currentprimary) 5)) [initcountdown] []; sleep 30001 [gotaki = 0]]
] []
]
alias sleeplist [0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 11000 12000 13000 14000 15000 16000 17000 18000 19000 20000 21000 22000 23000 24000 25000 26000 27000 28000 29000 30000]
alias initcountdown [
alias intcounter 30
loop akiloop 30 [
sleep (at $sleeplist $akiloop) [
-= intcounter 1
if (> $intcounter 19) [
echo (c 0) $intcounter
] [
if (> $intcounter 9) [
echo (c 2) $intcounter
] [
echo (c 3) $intcounter
]
]
]
]
]
alias akimbocountdown [
if (= $arg1 1) [
alias akicountdown 1
echo (c 2)Akimbo powerup countdown (c 0)enabled!
] [
alias akicountdown 0
echo (c 2)Akimbo powerup countdown (c 3)disabled!
]
]
// cursecondary - If the client has an akimbo available, returns 9, else returns 1.
// Requires the "gotaki" script.
alias cursecondary [
if $gotaki [
result 9
] [
result 1
]
]
docsection [Akimbo];
docident [akimbocountdown] [If enabled, echos a countdown timer to the console upon akimbo pickup.];
docargument [X] [1 = enabled, 0 = disabled];
docexample [/akimbocountdown 1] [Enables the countdown.];
docident [cursecondary] [Returns the index value of the clients current secondary weapon.];
docexample [/echo (cursecondary)] [If you currently have an akimbo powerup available, outputs 9.];
Use:
[SELECT ALL] Code:
/akimbocountdown 1
The cursecondary command will return 9 if you have the akimbo at your disposal, else it will return 1, for the usual pistol.
Random startup messages script:
[SELECT ALL] Code:
// Random startup messages script by DES|Bukz
if (checkalias rndstmsg) [] [rndstmsg = 1]
alias random_messages ["*crouch* *crouch* --- Nooooooooo!" "What is this game I don't even..."]
alias clearstartmessage [
if (= $arg1 1) [
alias random_messages []
echo (c 2)Your list of random start up messages has been (c 3)cleared!
] [
echo (c 3)clearstartmessage requires 1 as the only argument to function!
]
]
alias startmessage [
if (= $arg1 1) [
rndstmsg = 1
echo (c 2)Random startup messages (c 0)enabled!
] [
rndstmsg = 0
echo (c 2)Random startup messages (c 3)disabled!
]
]
addOnLoadOnce [if $rndstmsg [echo (at $random_messages (rnd (listlen $random_messages)))] []]
docsection [Random_Messages];
docident [clearstartmessage] [Clears the list of all random startup messages.];
docargument [X] [Must be 1 to function.];
docexample [/clearstartmessage 1] [Clears the list.];
docident [startmessage] [Enables or disables the showing of random messages on startup.];
docargument [X] [1 = enabled, 0 = disabled];
docexample [/startmessage 1] [Enables];
Use...
[SELECT ALL] Code:
/startmessage 1
You must edit the first alias in the script "random_messages" to include your own personalized messages. These messages must be separated by a space, AND wrapped in quotes "".