Forums Index >> Modding >> My hotkey script (So far)



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

Sunday, May 21, 2006 at 2:23:47 PM


 

                                        
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

Sunday, May 21, 2006 at 6:58:48 PM

On the actual script they are there, not sure why PTT wont show it

 

 

 

 

Sunday, May 21, 2006 at 11:04:49 PM

BUMP

 

 

 

 

Saturday, May 27, 2006 at 11:02:14 AM


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

Saturday, May 27, 2006 at 10:33:42 PM

Yep, exactly what im trying to do.

 

 

 

 

Saturday, May 27, 2006 at 11:58:40 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald