Blockland Forums > Modification Help

Simple Script Help

Pages: << < (2/7) > >>

¥ola:

Thanks man, I figured that function was incorrect

¥ola:

Also, when I set the keybind, and try to use it, it stays on JoinMessage Enbaled every time


¥ola:

Now I have


--- Code: ---if(!$JoinMessage::Binds)
{
$remapDivision[$remapCount]="Join Message";
$remapName[$remapCount]="Toggle On/Off";
$remapCmd[$remapCount]="toggleJoinMessage";
$remapCount++;
$JoinMessage::Binds=1;
}

package JoinMessage
{
     function ClientCmd_ClientJoin(%client)
     {
          parent::ClientCmd_ClientJoin(%client);
          if($JoinMessage::On = true)
               commandToServer('messageSent', "Welcome," SPC %client);
     }
};
activatePackage(JoinMessage);

function toggleJoinMessage(%a)
{
if(!%a)
return;
if($JoinMessage::On)
{
$JoinMessage::On = false;
clientcmdcenterPrint("\c6Join message disabled.", 2);
}
else
{
$JoinMessage::On = true;
clientcmdcenterPrint("\c6Join Message enabled.", 2);
}
}
--- End code ---

And it still doesn't work

Ipquarx:

use NewPlayerListGui::update(%this,%cl,%name,%blid,%a,%b,%c).

¥ola:


--- Quote from: Ipquarx on June 09, 2012, 12:11:50 PM ---use NewPlayerListGui::update(%this,%cl,%name,%blid,%a,%b,%c).

--- End quote ---
Hum.
Where?
Lol.

Pages: << < (2/7) > >>

Go to full version