451
Off Topic / Re: Free Google+ Invites
« on: July 15, 2011, 03:18:46 AM »SentThanks! :D
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.
Client's end?Ah, I see.
You don't even need that part. In fact, if you could put in a value for a Gameconnection on the client end then you could potentially abuse any server.
commandToServer('function name without ServerCmd',args, and, stuff);
For example, commandToServer('useTool',0); will pull out your hammer, and that number (7902 in your case) is automatically defined by the server, being the client that called the command.
Simplified:
Client does commandToServer('UseTool',0);
Server gets ServerCmdUseTool(7902,0);
A client, if you're doing this from the console, try something like serverCmdFirePants(findClientByName("blockhead"),45);From the clients end, how would you do this? Or is it automatically done?
And a 1000 watt power source so it doesnt bottle neck the pc. Plus extra 200 to get everything superclockedOk you REALLY don't know what you are talking about.
But the thing is you need to actually go over.600 to get a decent pc.You don't know what you are talking about.
I builtna custom pc on the internet for 900
6 core processor i7 990 I think
24gb ram
1t + 500gb hardrives
cool case
2 ati radeon 6850s
motherboard (any that works with above)
extra accesories
and if you wanted 2 27" monitors all for 1200+
It needs to be in a package.Oh yeah...
package LastUsedTool
{
function serverCmdUnUseTool(%client)
{
%client.player.lastUsedTool = %client.player.currTool;
Parent::serverCmdUnUseTool(%client);
}
};
activatePackage(LastUsedTool);Just stick this in any script that needs to know the client's player's last tool. The variable is assigned to the client's player as '.lastUsedTool'.I was hoping there was an easier way...I believe that's as easy as it gets.
function serverCmdUnUseTool(%client)
{
%client.player.lastUsedTool = %client.player.currTool;
Parent::serverCmdUnUseTool(%client);
}5 lines of code is pretty easy. =/
function serverCmdUnUseTool(%client)
{
%player = %client.player;
%player.lastUsedTool = %player.currTool;
Parent::serverCmdUnUseTool(%client);
}There you go, when the player presses Q to hide their inventory, a variable is assigned to their player with the last tool used.




