17 May 11, 05:10PM
(This post was last modified: 17 May 11, 05:15PM by master_se7en.)
My own script: GEMA commands (kick, ban) for players and admins...
Save this as a seperate cfg file:
add this to the autoexec.cfg file:
i'm still adapting to the scripting nature of CubeScript... my first script.
Save this as a seperate cfg file:
[SELECT ALL] Code:
alias initGEMACommands [
alias kickReason "No killing in GEMA!"
alias banReason "No killing in GEMA!"
alias meDeclare ""
alias kickKiller [
kick (findcn $arg1) $kickReason
if (strcmp $meDeclare "") [] [ me $meDeclare ]
]
alias kickKillerCN [
kick $arg1 $kickReason
if (strcmp $meDeclare "") [] [ me $meDeclare ]
]
alias banKiller [
ban (findcn $arg1) $banReason
if (strcmp $meDeclare "") [ me $meDeclare ] []
]
alias banKillerCN [
ban $arg1 $banReason
if (strcmp $meDeclare "") [ me $meDeclare ] []
]
bind F3 [ saycommand "/kickKiller " ]
bind F4 [ saycommand "/banKiller " ]
bind F7 [ saycommand "/kickKillerCN " ]
bind F8 [ saycommand "/banKillerCN " ]
bind F9 [ uninitGEMACommands ]
echo "Gema Commands initialized."
]
alias uninitGEMACommands [
alias kickReason []
alias banReason []
alias meDeclare []
alias kickKiller []
alias kickKillerCN []
alias banKiller []
alias banKillerCN []
bind F3 ""
bind F4 ""
bind F7 ""
bind F8 ""
bind F9 [ initGEMACommands ]
echo "Gema Commands uninitialized."
]
add this to the autoexec.cfg file:
[SELECT ALL] Code:
exec "config\<name of the cfg file where the gema commands are found>"
bind F9 [ initGEMACommands ]
i'm still adapting to the scripting nature of CubeScript... my first script.