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

Pages: 1 ... 142 143 144 145 146 [147] 148 149
2191
Modification Help / Re: Command Help
« on: March 06, 2009, 02:29:40 PM »
Well I went back to the basics and did this:

if(!isObject(%target) == true)
      {

      messageClient(%client, '', '\c6That player hasnt spawned yet!', %user);

      return;
      }
   }
};

that makes the spawn check work but I need to make it cancel the message All. How do I make it cancel that?

2192
Modification Help / Re: Command Help
« on: March 06, 2009, 02:11:36 PM »
Now it is syntaxing and it says this is the problem };##
##activatepackage(kill);

Here's the code

Code: [Select]
package kill
{
function servercmdkill(%client, %user)
{
if(%client.isSuperAdmin == false)
{

messageClient(%client, '', '\c6You must be a super admin to use this command.');

return;
}
if(%user !$= "")
{
%target = findClientByName(%user).player;
%targetC = findClientByName(%user);
if(!isObject(%target.player))
{
%target.kill();
messageAll("",'\c3%1 \c6was force killed by \c3%2', %targetC.name, %client.name);
messageClient(%targetC, '', '\c3%1 \c6has force killed you.', %client.name);
}
else
{
messageClient(%client, '', '\c6That player hasnt spawned yet!', %user);

return;
}
}
};##
##ActivatePackage(kill);

2193
Modification Help / Re: Command Help
« on: March 06, 2009, 12:15:17 PM »
What would I type in message all except to exclude the target? I have an idea to fix the spawn check.

2194
Modification Help / Re: Command Help
« on: March 05, 2009, 09:24:35 PM »
But that doesn't include the spawn check so it won't check to see if they are alive yet. It will just do the same thing won't it? I'll test it tomorrow. See ya

2195
Modification Help / Re: Command Help
« on: March 05, 2009, 09:18:16 PM »
Well, I'm gonna go practice guitar then go to bed, I'll continue this tomorrow if I can. Please keep posting! Good night!

2196
Modification Help / Re: Command Help
« on: March 05, 2009, 09:12:44 PM »
It says that they haven't spawned when they have... can you please help me make it so that it says "That player hasn't spawned yet" and not the message to all when they haven't spawned and when they have spawned that it doesn't say that they haven't. GAHH... It's kinda hard to explain. Please edit my script and re-post it.

2197
Modification Help / Re: Command Help
« on: March 05, 2009, 09:10:23 PM »
Even when they haven't spawned yet, it still does the messageAll: "(player) has been force killed by (player)

How could I cancel that?

2198
Modification Help / Re: Command Help
« on: March 05, 2009, 09:05:29 PM »
I wanted to also get rid of this when I type in a players name that doesn't exist:

 was force killed by AGlass0fMilk
That player hasn't spawned yet!

Have any idea how I could fix that?

2199
Modification Help / Re: Command Help
« on: March 05, 2009, 09:02:40 PM »
It isn't syntaxing so that might've worked but I haven't tested it yet. Thanks so far.

2200
Modification Help / Re: Command Help
« on: March 05, 2009, 08:56:21 PM »
Also, you haven't defined %target at that point. Your %target = thing down further looks fine, but you need to put it in the spawn check to make that work.

So I should put the spawn check further down the line? After the %target = part?

2201
Modification Help / Re: Command Help
« on: March 05, 2009, 08:46:33 PM »
I want to know whats up, I'll post the whole script here. Also, I want to know if I got the if(!isObject(%target.player)) part right so that it references the fact that they are spawned or not. Please post help if I got that wrong!

Code: [Select]
package kill
{
function servercmdkill(%client, %user)
{
if(%client.isSuperAdmin == false)
{

messageClient(%client, '', '\c6You must be a super admin to use this command.');

return;
}
if(!isObject(%target.player))
{

messageClient(%client, '', '\c6That player hasn't spawned yet!', %user);

return;
}
if(%user !$= "")
{
%target = findClientByName(%user).player;
%targetC = findClientByName(%user);
%target.kill();
messageAll("",'\c3%1 \c6was force killed by \c3%2', %targetC.name, %client.name);
messageClient(%targetC, '', '\c3%1 \c6has force killed you.', %client.name);
}
}
};
ActivatePackage(kill);

2202
Modification Help / Command Help
« on: March 05, 2009, 08:43:02 PM »
I started making a force kill script and I wanted to make it say a message when the player isn't spawned yet. And for some reason I get a syntax and the error halt is as so

Code: [Select]
^messageClient(%client, '', '\c6That player hasn't ##s##pawned yet!', %user);

2203
Modification Help / Re: Need Scripter and a couple tips (First Add-on)
« on: March 01, 2009, 04:34:31 PM »
Slayer, this would be a hard thing to script, and I have just started as you know so... probably could get Dark to do it though. =D I would love to try though!

2204
Modification Help / Re: Message lines help
« on: February 28, 2009, 01:00:21 PM »
-snip-

nevermind

2205
Modification Help / Message lines help
« on: February 28, 2009, 11:51:00 AM »
I would like to know how to make a message line and use player names, like: "Blah has been killed by asd"
Also, I would like to know in general about message lines. Please help. Post links to other references and just post on this board please, thank you! =D

Pages: 1 ... 142 143 144 145 146 [147] 148 149