Code:
doExample()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("N", "+actionslot 1");
for(;;)
{
self waittill( "N" );
//Put your stuff here
}
}
Code:
bind 1 "weapnext"
bind 2 "weapnext"
bind 3 "+actionslot 3"
bind 4 "+actionslot 4"
bind 5 "+actionslot 2"
bind A "+moveleft"
bind C "togglecrouch"
bind D "+moveright"
bind E "+melee"
bind F "+activate"
bind G "+frag"
bind N "+actionslot 1"
bind Q "+smoke"
bind R "+reload"
bind S "+back"
bind T "chatmodepublic"
bind W "+forward"
bind Y "chatmodeteam"
bind Z "+talk"
bind CTRL "toggleprone"
bind SHIFT "+breath_sprint"
bind MOUSE1 "+attack"
bind MOUSE2 "+speed_throw"
bind MOUSE3 "+frag"
bind MWHEELDOWN "+melee"