Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jes00

Pages: 1 ... 270 271 272 273 274 [275] 276 277 278 279 280 ... 464
4111
General Discussion / Re: Glass' Trench Wars (Topic Transferred)
« on: June 29, 2012, 07:30:04 AM »
If any more horrible servers pop up that take the "ALL THE PLAYERS" spot, I will start hosting Ultimate Monster RPG again. And I will improve it.
:D Please do.

Only problem was that it was pretty laggy. Perhaps make the bots only spawn if a player is within a certain radius?

4112
Modification Help / Re: Organizing code help
« on: June 28, 2012, 07:10:54 AM »
Well you guys are posting humongous mods. He doesn't really need to break it into that many text files
I use this with a very short description of whats below it and sometimes if there is a lot of code or I'm planning on it being a big mod I'll have multiple files.
//=========================================================================
// Description Here
//=========================================================================

4113
Modification Help / Re: Get Client Points?
« on: June 28, 2012, 06:56:02 AM »
Post your code.
Burp.
Code: [Select]
//=========================================================================
// GUI Modification
//=========================================================================
if(!$Client::ShowScore::Haloveecuted)
{
new GuiSwatchCtrl(ShowScore_Parent)
{
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "750 350";
extent = "125 50";
minExtent = "8 2";
visible = "0";
color = "0 0 0 0";

new GuiMLTextCtrl(ShowScore_Text)
{
profile = "GuiMLTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "25 16";
extent = "106 24";
minExtent = "8 2";
visible = "1";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
text = "";
maxBitmapHeight = "-1";
selectable = "1";
};
};

PlayGui.add(ShowScore_Parent);

$Client::ShowScore::Haloveecuted = true;
}
//=========================================================================
// Key Bind
//=========================================================================
function ShowScore_addBind()
{
if(!$Client::ShowScore::Bind)
{
$Client::ShowScore::Bind = 1;

for(%i = 0; %i < $remapCount; %i++)
{
if($remapDivision[%i] $= "View")
{
%foundDiv = 1;

continue;
}

if(%foundDiv && ($remapDivision[%i] !$= ""))
{
%position = %i;

break;
}
}

if(!%foundDiv)
{
error("Division not found: View");

return;
}

if(!%position)
{
$remapName[$remapCount] = "View";
$remapCmd[$remapCount] = "Toggle ShowScore";
$remapCount++;

return;
}

for(%i = $remapCount; %i > %position; %i--)
{
$remapDivision[%i] = $remapDivision[%i - 1];
$remapName[%i] = $remapName[%i - 1];
$remapCmd[%i] = $remapCmd[%i - 1];
}

$remapDivision[%position] = "";
$remapName[%position] = "Toggle ShowScore";
$remapCmd[%position] = "Toggle_ShowSCore";
$remapCount++;
}
}

ShowScore_addBind();

function Toggle_ShowScore(%b)
{
if(!%b)
{
if(!ShowScore_Parent.isVisible())
{
ShowScore_UpdateScore();

ShowScore_Parent.setVisible(1);
}

else
{
cancel($Client::ShowScore::Schedule);

ShowScore_Parent.setVisible(0);
}
}
}
//=========================================================================
// Package
//=========================================================================
package ShowScore
{
function ShowScore_Parent::onWake()
{
if(!$Client:ShowScore::HasPositioned)
{
ShowScore_Parent.position = (getWord(PlayGui.extent, 0) + 110) SPC (getWord(PlayGui.extent, 1) - 30);

$Client:ShowScore::HasPositioned = true;
}
}

function newPlayerListGUI::update(%this, %cl, %name, %BL_ID, %trust, %admin, %score)
{
parent::update(%this, %cl, %name, %BL_ID, %trust, %admin, %score);

if(%name $= $Pref::Player::NetName)
{
$MyClient = %cl;

ShowScore_Text.setText("<font:impact:23><color:FFFF00>Score:<color:ffffff>" SPC %score);
}
}

function newPlayerListGUI::updateScore(%this, %client, %score)
{
if(%client == $MyClient)
{
ShowScore_Text.setText("<font:impact:23><color:FFFF00>Score:<color:ffffff>" SPC %score);
}

parent::updateScore(%this, %client, %score);
}
};
activatePackage(ShowScore);

function ShowScore_UpdateScore()
{
if(isObject(serverConnection))
{
if(ServerConnection.getControlObject().getClassName() $= "Player" || (ServerConnection.getControlObject().getClassName() $= "Camera"))
{
cancel($Client::ShowScore::Schedule);

$Client::ShowScore::Schedule = schedule(100, 0, ShowScore_UpdateScore);

commandToServer('openPlayerList');
schedule(50, commandToServer, closePlayerList);
}
}
}

4115
Modification Help / Re: Get Client Points?
« on: June 27, 2012, 06:33:38 PM »
Only one problem. Whenever I use the function the console now and then spams this:

ERROR: NewPlayerListGui::UpdateTrust() - score update recieved for non-existant client (SomeNumbers)
BackTrace: ->secureClientCmd_ClientScoreCh anged->[ShowScore]NewPlayerListGui::updateScore->NewPlayerListGui::updateScore

4116
Modification Help / Re: Need help scripting.
« on: June 27, 2012, 05:40:19 PM »
Lol.

New question.
How do you save/make a text document?
In torque? If not that's just sad.

4117
Modification Help / Re: Need help scripting.
« on: June 27, 2012, 04:19:08 PM »
Why is this
Code: [Select]
function serverCmdKill(%client,%targetName)
{
    Echo("Killing " @ %targetname)
    if(%client.isAdmin)
    {
        findclientbyname(%targetname).player.kill();
    }
}
not working.
My Script_KillPlayer.Zip File has this in it.
description.txt
nameCheck.txt
server.cs

Inside my description.txt file i have this.
Name: Kill
Author: Zefoo

Inside my nameCheck.txt file i have this
Script_KillPlayer

Inside my server.cs file i have this
function serverCmdKill(%client,%targetName)
{
    Echo("Killing " @ %targetname)
    if(%client.isAdmin)
    {
        findclientbyname(%targetname).player.kill();
    }
}

Did you bother reading anything we just said?

4118
Modification Help / Re: Need help scripting.
« on: June 27, 2012, 04:14:43 PM »
yes, but it wouldn't echo properly, you don't use the & symbol to put 2 strings together, you use @
And it's missing an ; and for the person's name you would want Echo("Killing " @ findClientByName(%targetname).name);

4119
Modification Help / Re: Hiding player name outside of minigame?
« on: June 27, 2012, 02:55:01 PM »
You can't specify the jet emitter with in a player datablock
Sure you can. jetEmitter = "playerJetEmitter"; jetGroundEmitter = "playerJetGroundEmitter";

4121
General Discussion / Re: Glass' Trench Wars (Topic Transferred)
« on: June 27, 2012, 09:36:28 AM »
TomTom is using his abusive commands that only he can use that he installed with eval when he was super admin.

4122
General Discussion / Re: Glass' Trench Wars [Official Topic]
« on: June 26, 2012, 08:25:20 PM »
TomTom Perma Banned. For,


TomTom being banned never lasts. He always manages to get unbanned.

4123
General Discussion / Re: Socrates' Bounty Hunter - V1.1
« on: June 26, 2012, 08:23:52 PM »




Server in a nutshell
Does not compute.

4124
Modification Help / Re: How do I create a Key bind
« on: June 26, 2012, 01:40:09 PM »
$remapDivision[ $remapCount] = "Division Name";
$remapName[ $remapCount ] = "Keybind Name";
$remapCmd[ $remapCount ] = "Keybind Function";
$remapCount++;

Can the function box have (); at the end? I don't think so, just checking.

4125
General Discussion / Re: Save us badspot!
« on: June 26, 2012, 08:52:37 AM »
There are a few other servers too.

Pages: 1 ... 270 271 272 273 274 [275] 276 277 278 279 280 ... 464