Forums Index >> Modding >> My hotkey script (So far)
Page : <1> :
if
(!$Server::Dedicated) {
moveMap.bindCmd(keyboard, "1", "", "commandToServer('messageSent', *
"/tm im smoking, I need to PASS*
");");
}
Change the *'s to the downsideup-slash (not the normal slash, the other one) (PTT doesn't allow it)
Last edited: Sunday, May 21, 2006 at 7:02:21 PM
I'm no expert on this stuff, but my hotkey commands look like this in my main.cs. I think you were trying to move them elsewhere to clean up your main.cs- maybe trying the different commands will work- if not, I have no idea. %)
Last edited: Saturday, May 27, 2006 at 10:37:15 PM
Page : <1> :
// Pedro hotkey script.
If (!$Server::Dedicated) {
commandToServer.bindCmd(keyboard, "1", "", "commandToServer('messageSent', "/tm Im smoking, I need to PASS!");");
}
if (!$Server::Dedicated) {
commandToServer.bindCmd(keyboard, "2", "", "commandToServer('messageSent', "/PASS the scrum!");");
}
if (!$Server::Dedicated) {
commandToServer.bindCmd(keyboard, "3", "", "commandToServer('messageSent', "/tm Hot Potato!");");
}
if (!$Server::Dedicated) {
commandToServer.bindCmd(keyboard, "4", "", "commandToServer('messageSent', "/tm Take it Home, To the GOAL!");");
}
if (!$Server::Dedicated) {
commandToServer.bindCmd(keyboard, "5", "", "commandToServer('messageSent', "/tm Super Camp!");");
}
if (!$Server::Dedicated) {
commandToServer.bindCmd(keyboard, "6", "", "commandToServer('messageSent', "/tm Get back to us, Your surrounded");");
}
if (!$Server::Dedicated) {
commandToServer.bindCmd(keyboard, "7", "", "commandToServer('messageSent', " Woah, Nice move!");");
}
if (!$Server::Dedicated) {
commandToServer.bindCmd(keyboard, "8", "", "commandToServer('messageSent', "gtg, cya!");");
}
if (!$Server::Dedicated) {
commandToServer.bindCmd(keyboard, "9", "", "commandToServer('messageSent', "Swish ;)!");");
}
if (!$Server::Dedicated) {
commandToServer.bindCmd(keyboard, "0", "", "commandToServer('messageSent', "Need backup!");");
}
This is what I have so far. TT now loads up but the script doesnt work.
Whats wrong with it?
I also added this to the main.cs
exec("game/HotkeyScript/Hotkeys.cs");
Last edited: Sunday, May 21, 2006 at 2:24:50 PM