Author Topic: Shortcut Messages v①.④ - LOCKED BECAUSE MAKING FIXES!!!  (Read 6422 times)

I wish I knew how to keybind/slash command
My MGS mod is still just sitting there ;.;


Code: [Select]
moveMap.bind(keyboard, "ctrl m", buttonA);//when key is pressed "ctrl m" it will goto function buttonA (add this to the top of your script.

function buttonA(%val) //starting buttonA function
{
if (%val) //dont worry about it...
{
//code goes here!
}
}

there you go :) hope you understand

ummm my source: http://www.torquepowered.com/community/resources/view/9779/1
« Last Edit: June 30, 2010, 02:05:24 PM by tyler0 »

Tom

I don't think moveMap.bind() creates a proper, customizable keybind for Blockland. Use this method instead:

Code: [Select]
if(!$CustomBindsMapped)
{
$remapDivision[$remapCount] = "category here";
$remapName[$remapCount] = "keybind name";
$remapCmd[$remapCount] = "function name";
$remapCount++;
$CustomBindsMapped = 1;
}

« Last Edit: June 30, 2010, 08:51:46 PM by tyler0 »

« Last Edit: Today at 01:43:55 PM by Badspot »

lolwhat

Can you make it to where what kind of msg it is, like Centermsg and Bottommsg
Plz

Can you make it to where what kind of msg it is, like Centermsg and Bottommsg
Plz
that would be pretty nice

that would be pretty nice

umm i could do center print but bottom print would be kinda weird but i will see wat i can do :)


Code: [Select]
moveMap.bind(keyboard, "ctrl m", buttonA);//when key is pressed "ctrl m" it will goto function buttonA (add this to the top of your script.

function buttonA(%val) //starting buttonA function
{
if (%val) //dont worry about it...
{
//code goes here!
}
}

Oh thanks :D

Yup id half to agree lookes good  :cookie:'s for you.



Now I dont have to spend a extra few seconds typing "Stop teamkilling!" or "Stick together!"  :cookie:
I'll keybind "Shut the forget up" so I don't have to :D

Tom

You need to fix up a lot of things:
- Do your keybinds properly
- Name the client functions (buttonA, ect) to something less generic. ex: clSpecMessageAll
- Don't use a different serverCmd for each message. Use arguments and arrays.
- I think the messages will reset to "Empty" every time you restart the server. Register the RTB prefs correctly.

It would be better if they were keybinds.  Nice job still.
There already is one with keybinds check the RTB archives

You need to fix up a lot of things:
- Do your keybinds properly
- Name the client functions (buttonA, ect) to something less generic. ex: clSpecMessageAll
- Don't use a different serverCmd for each message. Use arguments and arrays.
- I think the messages will reset to "Empty" every time you restart the server. Register the RTB prefs correctly.

- I did my keybinds fine...
- Name of the client functions are for my knowlege not anyone elses...
- Also very new to scripting so using arguments and arrays i have know clue.
- Last one yea i no i dont know how to make it save the changes... BUT YOU CAN SET THEM WITH ("BlocklandFOLDER\config\server\MsgPref1.4.cs") just you need to restart your server.