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 ... 141 142 143 144 145 [146] 147 148 149
2176
Modification Help / Re: Check for host
« on: March 08, 2009, 04:58:28 PM »
SOLVED I LEFT OUT ONE !

2177
Modification Help / Re: Status Help
« on: March 08, 2009, 04:20:01 PM »
I used your code and it worked flawlessly for me, here are my steps:

1. copy pasted your code into notepad
2. Saved the code as server.cs
3.packaged the server.cs into a .zip file
4. Put a description.txt in the .zip file with the server.cs file
5. Put the .zip into my add ons folder
6. Used it inside and out of a minigame
7. Posted this here

Here is the code again:

Code: [Select]
function ServerCmdAFK(%client)

{
        %client.player.setShapeName(%client.name SPC "[AFK]");
        %client.player.setShapeNameColor("1 0 0");

messageClient(%client,'', "\c5You are now seen as \c3AFK");
        messageAll('', "\c3" @ %client.name SPC "\c5has updated their status to: \c3AFK");
}
Now I don't know why yours doesn't work, did you package it wrong?

2178
Modification Help / Re: Status Help
« on: March 08, 2009, 01:51:43 PM »
Is there a syntax in the console? What does it do that you don't want it to?

2179
Modification Help / Re: Check for host [solved]
« on: March 08, 2009, 01:36:25 PM »
Well, I am opening the post again because Space Guys advice didn't work, At least it didn't work all the way. I put the host check in that he told me to put in, and when I did that, no matter what setting the preference was on, not even the host could use it, and now I put == false on both of the admin checks, and now it works a little better but, No matter what setting it is on, only the host can use the command. Here is the code
Code: [Select]
if(isFile("Add-Ons/System_ReturnToBlockland/server.cs"))
{
if(!$RTB::RTBR_ServerControl_Hook)

exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");
RTB_registerPref("Kill Command","Server Commands","Kill::Users","list SuperAdmin 0 Admins 1 Host 2", "Kill Command","0", 0, 1);
}
else
{
$Kill::Users = "0";
}

package kill
{
function servercmdkill(%client, %user)
{
if($kill::Users == 0 && !%client.isSuperAdmin)
{

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

return;
}
if($kill::Users == 1 && !%client.isAdmin)
{

messageClient(%client, '', '\c6You must be an Admin to use this command.');

return;
}
if($Kill::User == 2 && !((isObject(localclientconnection) && %client.getID() == localclientconnection.getID()) == false) || %client.bl_id == getNumKeyID() == false)
{

messageClient(%client, '', '\c6You must be the Host to use this command.');

return;
Please tell me how to fix this so that when it is on Admins, both admins can use it, when it is on Super admins, Super Admins can use it, and when it is on Host, only the host can use it.

2180
Modification Help / Re: player change datablock function
« on: March 08, 2009, 01:29:23 PM »
So you want it to only change you? Or do you want to be able to type in like /blah (player name) (datablock) and then change them?

2181
Modification Help / Re: Scripting Help
« on: March 08, 2009, 01:14:46 PM »
Yeah, that stuff's for the pros!

XD

And Russian, here's what I posted on a different thread wanting help with learning torquescript:

« March 06, 2009, 06:46:45 pm »    Reply with quote Modify message
I know a good book that covers all of torque, making stuff, scripting. I have read the preview, like half the book is included. Downside is is that it is $60. But the book is not all that you get. You also get more computer appendices and references plus more info that wasn't in the book. Ill post the link.

http://books.google.com/books?id=W_ChoAN4AboC&printsec=frontcover&dq=%22Torque%22#PPP1,M1

then there is another appendix that is on this board, I'll post it here too.

http://www-rohan.sdsu.edu/~stewart/GPGT/Appendix%20A%20-%20Quick%20References.pdf
(warning, it's pretty long)

Other than that, you can look at other scripts and post problems here on the boards, I'm still learning, started not to long ago. I wouldn't recommend buying the book unless you are SURE that you want to learn how script. By the way, If you know how to make preferences for RTB and stuff like that, I could use your help. Here http://forum.blockland.us/index.php?topic=62220.0

2182
Modification Help / Re: player change datablock function
« on: March 08, 2009, 01:04:18 PM »
Do you want to make it change YOUR datablock or someone elses?

2183
Modification Help / Check for host
« on: March 08, 2009, 12:55:58 PM »
I am making server preferences and all of it works except for the Host check. I tried this:

Code: [Select]
if(Kill::users == 3 && !%Client.isHost)

Even if I am the host, it says I must be host to use the command, so how could I fix this?

2184
Modification Help / Re: Preferences References (RTB)
« on: March 07, 2009, 11:43:04 AM »
Space, could you go more in depth now that I have that down, could you tell me how to make the buttons operate?

2185
Modification Help / Re: Preferences References (RTB)
« on: March 06, 2009, 10:48:48 PM »
While fanning through the RTB system servercommand file, I found three different types of preferences:

Bool (a checkbox)

int (number from min to max)

list (exactly how it sounds)

Now I have figured out that  for this specific preference, I would want a list. But I dont know how to name the things in the list here is what I'm doing:

Code: [Select]
if(isFile("Add-Ons/System_ReturnToBlockland/server.cs"))
{
if(!$RTB::RTBR_ServerControl_Hook)

exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");
RTB_registerPref("Kill Command","Server Commands","Kill::Users","list SuperAdmin Host Admins All", "Kill Command","SuperAdmin", 0, 1);
}
else
{
$Kill::Users = SuperAdmin;
}

Now when I do that, the list comes out as SuperAdmin and Host, nothing else, and the default isn't SuperAdmin, it's nothing. Could someone please help me with this preference?

2186
Modification Help / Re: Preferences References (RTB)
« on: March 06, 2009, 09:32:04 PM »
Anyone? bump

2187
Modification Help / Re: Coding tutorials
« on: March 06, 2009, 07:46:45 PM »
I know a good book that covers all of torque, making stuff, scripting. I have read the preview, like half the book is included. Downside is is that it is $60. But the book is not all that you get. You also get more computer appendices and references plus more info that wasn't in the book. Ill post the link.

http://books.google.com/books?id=W_ChoAN4AboC&printsec=frontcover&dq=%22Torque%22#PPP1,M1

then there is another appendix that is on this board, I'll post it here too.

http://www-rohan.sdsu.edu/~stewart/GPGT/Appendix%20A%20-%20Quick%20References.pdf
(warning, it's pretty long)

Other than that, you can look at other scripts and post problems here on the boards, I'm still learning, started not to long ago. I wouldn't recommend buying the book unless you are SURE that you want to learn how script. By the way, If you know how to make preferences for RTB and stuff like that, I could use your help. Here http://forum.blockland.us/index.php?topic=62220.0

2188
Modification Help / Preferences References (RTB)
« on: March 06, 2009, 07:39:08 PM »
I would like to make a pref for my Kill mod and other Server commands that I make so that the Host can control who can use it (Admins, Super Admin, Host, All) and I have looked at the RTB brief tutorial. I want to make check boxes if I could. Ill look at the RTB system server or something. But if anyone could do a more detailed tutorial on making preferences, please do so. Thanks!

2189
Modification Help / Re: Command Help [FIXED]
« on: March 06, 2009, 03:24:24 PM »
Well I fixed it already and it works perfectly. So FIXED

2190
Modification Help / Re: Command Help
« on: March 06, 2009, 02:47:16 PM »
bump

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