[php]
doCommand()
{
self notifyonplayercommand("E", "+melee");
{
self waittill("E"); //Waits until player presses E
//Do stuff here
}
}
[/php]
all bind keys:
Code:
bind TAB "+scores"
bind ESCAPE "togglemenu"
bind SPACE "+gostand"
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 "+toggleads_throw"
bind MOUSE3 "+frag"