Author Topic: Ok so i got my script to work but now it is overwrighting VCE prints?!?  (Read 601 times)

Fixed

Code: [Select]
//////////Ty's Shortcut Message Script


$Messages::1 = "Empty";
$Messages::2 = "Empty";
$Messages::3 = "Empty";
$Messages::4 = "Empty";
$Messages::5 = "Empty";

if(isFile("config/server/MsgPref.cs"))
{
exec("config/server/MsgPref.cs");
} else {
export("$Messages::*","config/server/MsgPref.cs");
}

if(isFile("Add-Ons/System_ReturnToBlockland/server.cs"))
{
if(!$RTB::RTBR_ServerControl_Hook)  ///////////////////////////////////////////////////////////////////////////////////////Added this if statement for fix!!!
exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");
RTB_registerPref("Message1","Shortcut Messages","$Messages::1","string 255","Script_ShortcutMsgs","Empty",0,0);
RTB_registerPref("Message2","Shortcut Messages","$Messages::2","string 255","Script_ShortcutMsgs","Empty",0,0);
RTB_registerPref("Message3","Shortcut Messages","$Messages::3","string 255","Script_ShortcutMsgs","Empty",0,0);
RTB_registerPref("Message4","Shortcut Messages","$Messages::4","string 255","Script_ShortcutMsgs","Empty",0,0);
RTB_registerPref("Message5","Shortcut Messages","$Messages::5","string 255","Script_ShortcutMsgs","Empty",0,0);
}

function serverCmdMsg1(%client)
{
if(%Client.isAdmin)
{
messageAll('',$Messages::1);
}
}

function serverCmdMsg2(%client)
{
if(%Client.isAdmin)
{
messageAll('',$Messages::2);
}
}

function serverCmdMsg3(%client)
{
if(%Client.isAdmin)
{
messageAll('',$Messages::3);
}
}

function serverCmdMsg4(%client)
{
if(%Client.isAdmin)
{
messageAll('',$Messages::4);
}
}

function serverCmdMsg5(%client)
{
if(%Client.isAdmin)
{
messageAll('',$Messages::5);
}
}
« Last Edit: June 29, 2010, 10:36:41 PM by tyler0 »

Glad I could help.



But in seriousness, you shouldn't edit your topic posts to just say "Fixed" unless the code is seriously vital to be yours only. Others may benefit to see the fixes you've done, and compare to their own situations.

Glad I could help.



But in seriousness, you shouldn't edit your topic posts to just say "Fixed" unless the code is seriously vital to be yours only. Others may benefit to see the fixes you've done, and compare to their own situations.

k i will put it back up but in as the fixed script