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 - hodototman

Pages: 1 ... 666 667 668 669 670 [671] 672 673 674 675 676 ... 706
10051
Modification Help / Re: ClearTools help
« on: August 13, 2012, 09:07:46 PM »
One problem

When I talk too fast as an SA, it gives me the flood protection stuff.

Wtf?

10052
Suggestions & Requests / Re: Pirate // 18th Century Weapons
« on: August 13, 2012, 08:48:17 PM »

10053
Suggestions & Requests / Re: [IDEA] More Keys Add-On
« on: August 13, 2012, 08:47:48 PM »
zomg no fights pls

10054
Suggestions & Requests / Re: Death on entering shadows
« on: August 13, 2012, 08:45:50 PM »
somehow I don't think its possible and thats just there graphics card not being able to render shadows on the player's body

someone correct me if I'm wrong though

You're right

10055
Suggestions & Requests / Re: Motion Blur
« on: August 13, 2012, 08:44:36 PM »
Here's how to do it

Step one - Convince Badspot to switch to havok or unreal game engine

Step two - ????

Profit

So easy, right

/sarcasm

10056
Modification Help / Re: ClearTools help
« on: August 13, 2012, 08:42:11 PM »
it works now. thanks

It was Ipquarx's stuff.

10057
Modification Help / Re: ClearTools help
« on: August 13, 2012, 07:57:15 PM »
messageClient(%client,'',"Your tools were cleared."); //Message the victim

Replace

messageClient(%target,'',"Your tools were cleared."); //Message the victim

ok

Anything else?

10058
Modification Help / Re: ClearTools help
« on: August 13, 2012, 07:55:58 PM »
No it doesn't, it messages just you

Some other guy was being a jerk.

10059
Modification Help / Re: ClearTools help
« on: August 13, 2012, 07:54:27 PM »
Not possible if you used the code exactly as I put it.

I did.

Well, it said the message to me AND the client that was cleartools'd.
I want it just to say that to the user being cleartools'd and to me saying "You cleared [playername]'s tools"


10060
Modification Help / Re: ClearTools help
« on: August 13, 2012, 07:51:25 PM »
One problem -

When it says "Your tools were cleared" It broadcasts it to the whole server.

10061
Modification Help / Re: ClearTools help
« on: August 13, 2012, 07:36:08 PM »
Don't say thank you before you test it

because if you did test it, you would've found it doesn't work AT ALL.

First off, the first argument in every server command is the client that sent the command, you can't just change the name of the variable and hope that it magically knows that you want it to be a name.

second, even if that first error didn't happen, you have it set to message the client whether or not the players tools were cleared! You can't just assume that people always put in valid input.

Here is a fixed version, with error messages and that super-admin-only addition:
Code: [Select]
function serverCmdClearTools(%client, %name)
{
//Make sure the user is super admin
if(!%client.isSuperAdmin)
{
messageClient(%client, '', "\c6You must be super admin to clear other player's tools!");
return false;
}

//Find the target by their name
%target = findclientbyname(%name);
%player = %target.player;

//Make sure the target is on the server, and has spawned.
//If not, give an error message to the sender.
if(isObject(%target))
{
if(isObject(%player))
%player.clearTools();
else
{
messageClient(%client, '', "\c6That person has not spawned yet!");
return false;
}
}
else
{
messageClient(%client, '', "\c6There is nobody by that name on the server!");
return false;
}

messageClient(%client,'',"Your tools were cleared."); //Message the victim

return true;
}

Thank you, Ipquarx. I'll try to make something similar on my own now.

Thanks, this is resolved!

10062
Suggestions & Requests / Re: Fake Kill Wand with RTB Prefs
« on: August 13, 2012, 07:34:37 PM »
That's time consuming, and it may also say too many events at once.

hmm, yeah you're right

We do need this.

10063
Modification Help / Re: ClearTools help
« on: August 13, 2012, 07:33:45 PM »
to make it super admin only, you have to check that %client.isSuperAdmin is true

Here is your amended code:
Code: [Select]
function serverCmdClearTools(%name)
{
   %client = findclientbyname(%name); //We only had their name, so we use this to find their client
   %player = %client.player; //ok, we've found their player

   if(isObject(%player) && %client.isSuperAdmin) //let's check to make sure that the player actually exists
   {
      %player.clearTools(); //clear their tools
      messageClient(%client,'',"Your tools were cleared."); //tell them what happened
   }
}

So this makes it that only SAs can use the command?

10064
Modification Help / Re: ClearTools help
« on: August 13, 2012, 07:15:40 PM »
Ok, you make a very slight modification to the script, like so

Code: [Select]
function serverCmdClearTools(%name)
{
   %client = findclientbyname(%name); //We only had their name, so we use this to find their client
   %player = %client.player; //ok, we've found their player

   if(isObject(%player)) //let's check to make sure that the player actually exists
      %player.clearTools(); //clear their tools

   messageClient(%client,'',"Your tools were cleared."); //tell them what happened
}
Enable that code on your server and you will be able to type /clearTools [name] and have it clear that player's tools

Thank you.
How can I make it SA only?

10065
Suggestions & Requests / Re: [IDEA] More Keys Add-On
« on: August 13, 2012, 07:13:15 PM »
Omg, sorry. I'm on a stuff spree today and I don't feel very good. I'm very tired.

Sorry for any offensive comments, I really don't mean them.

Pages: 1 ... 666 667 668 669 670 [671] 672 673 674 675 676 ... 706