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

Pages: 1 2 3 4 [5] 6 7 8 9 10 ... 18
61
Music / Re: Request: Electric Avenue
« on: May 18, 2010, 05:36:12 PM »

62
Music / Request: Electric Avenue
« on: May 15, 2010, 02:55:15 AM »
Please someone make this song.

http://www.youtube.com/watch?v=UA5MtAmT24g

63
Modification Help / Re: Dedicated minigame
« on: May 15, 2010, 02:24:46 AM »
Hmm im not sure ive ever heard of Dedicated Minigame

64
Modification Help / Re: Admin tags v3?
« on: May 13, 2010, 06:45:44 PM »
What code are you talking about the one in my script?

65
Modification Help / Re: Admin tags v3?
« on: May 13, 2010, 06:33:16 PM »
No.
If you used just that, nothing would happen.

Obviously put in the code to change the tags where it says //Assign clan tags here
What code?

66
Modification Help / Re: Admin tags v3?
« on: May 13, 2010, 06:26:15 PM »
Code: [Select]
package aasdf
{
    function serverCmdMsgSent(%this, %client)
    {
%tagPrefix = %client.clanPrefix;
%tagSuffix = %client.clanSuffix;


//Assign clan tags here



parent::ServerCmdMessageSent(%this, %line);

%client.clanPrefix = %tagPrefix;
%client.clanSuffix = %tagSuffix;
    }
};

activatePackage(aasdf);
If you de admin a player wont there tag still be [Admin]?

67
Modification Help / Re: Admin tags v3?
« on: May 13, 2010, 06:07:02 PM »

68
Modification Help / Re: Admin tags v3?
« on: May 13, 2010, 06:04:11 PM »
Assigning prefixes as their admin changes is stupid. Assign tags on-the-fly as they send a message, much better and not as long to write.

Save the unmodified tags
Assign clan tags appropriate to the person's admin level
parent ServerCmdMessageSent
Restore unmodified tags

if(%client.bl_id $= getNumKeyID())
should be
if(%client.bl_id != getNumKeyID() && findLocalClient() !$= %client)
is there a way to make the coding smaller? Instead of having like 20 lines of codes.

69
Modification Help / Re: Admin tags v3?
« on: May 13, 2010, 05:58:36 PM »
Change autoadmincheck to just do [Loading] and add a onClientEnterGame and make it do [Player], [Admin], [SuperAdmin], and [Host].
What do you mean?

70
Modification Help / Admin tags v3?
« on: May 13, 2010, 05:55:39 PM »
Code: [Select]
package Tags
{
function GameConnection::autoAdminCheck(%client)
{
Parent::autoAdminCheck(%client);
%client.oldPrefix = %client.clanPrefix;

if(%client.bl_id $= getNumKeyID())
{
%client.clanPrefix = "\c6[\c2Host\c6]\c7" SPC %client.oldPrefix;
}
else if(%client.isSuperAdmin == true)
{
%client.clanPrefix = "\c6[\c2Super Admin\c6]\c7" SPC %client.oldPrefix;
}
else if(%client.isAdmin == true)
{
%client.clanPrefix = "\c6[\c2Admin\c6]\c7" SPC %client.oldPrefix;
}
                else if (%client.isSuperAdmin == false)
                {
                        %client.clanPrefix = "\c6[\c2Player\c6]\c7" SPC %client.oldPrefix;
                }
                else if (%client.isAdmin == false)
                {
                        %client.clanPrefix = "\c6[\c2Player\c6]\c7" SPC %client.oldPrefix;
}

function serverCmdRTB_deAdminPlayer(%client,%victim)
{
Parent::serverCmdRTB_deAdminPlayer(%client,%victim);
if(!%victim.isAdmin)
{
%victim.clanPrefix = "\c6[\c2Player\c6]\c7" SPC %victim.oldPrefix;
}
}

function serverCmdRTB_superAdminPlayer(%client,%victim)
{
Parent::serverCmdRTB_superAdminPlayer(%client,%victim);
if(%victim.isSuperAdmin)
{
%victim.clanPrefix = "\c6[\c2Super Admin\c6]\c7" SPC %victim.oldPrefix;
}

}

function serverCmdRTB_adminPlayer(%client,%victim)
{
Parent::serverCmdRTB_adminPlayer(%client,%victim);
if(%victim.isAdmin)
{
%victim.clanPrefix = "\c6[\c2Admin\c6]\c7" SPC %victim.oldPrefix;
}
}

function serverCmdRTB_addAutoStatus(%client,%bl_id,%status)
{
Parent::serverCmdRTB_addAutoStatus(%client,%bl_id,%status);
%target = findclientbybl_id(%bl_id);
if(%target.isAdmin)
{
if(isObject(%target))
{
switch$(%status)
{
case "Admin":
%target.clanPrefix = "\c6[\c2Admin\c6]\c7" SPC %target.oldPrefix;
case "Super Admin":
%target.clanPrefix = "\c6[\c2Super Admin\c6]\c7" SPC %target.oldPrefix;
                                        case "Player":
%target.clanPrefix = "\c6[\c2Player\c6]\c7" SPC %target.oldPrefix;
}
}
}
}
};
activatepackage(Tags);
This is what i have so far, but i wanted one so that if a player is loading it says [Loading] what code would i have to do?

71
Modification Help / Re: Server IDs Code Help
« on: May 10, 2010, 08:22:53 PM »
You are hopeless.

Code: [Select]
function getPlayerID(%client)
{
    for(%a = 0; %a < ClientGroup.getCount(); %a++)
if(ClientGroup.getObject(%a) == %client)
    return %a;
}

package IDS
{
function gameConnection::autoAdminCheck(%this)
{
messageAll('',"\c7Player ID: "@ getPlayerID(%this) @" has joined the server!");
return parent::autoAdminCheck(%this);
}
};
activatepackage(IDS);
:o does it actually save the id?

72
Modification Help / Re: Server IDs Code Help
« on: May 10, 2010, 08:18:10 PM »
How are you using it?
I make a server.cs file and put the code there...

73
Modification Help / Re: Server IDs Code Help
« on: May 10, 2010, 08:15:40 PM »
function getPlayerID(%client)
{
    for(%a = 0; %a < ClientGroup.getCount(); %a++)
   if(ClientGroup.getObject(%a) == %client)
       return %a;
}
That didnt work...

74
Modification Help / Re: Server IDs Code Help
« on: May 10, 2010, 07:51:03 PM »
Wait what, do you mean the first person to join is 0 and the second is 1 and so on?
Yes, like if i join my ID now is 0 and if someone else comes there id is 1 but if they leave and another person comes there id is 2 not 1. like it saves there id.

75
Modification Help / Re: Server IDs Code Help
« on: May 10, 2010, 07:46:08 PM »
I tested it and thats not what i wanted it to be... i wanted it to have a SERVER id not a BL_ID.

like if client bl_id joined the server it would say Player ID: 0 joined the server. and so on...

Pages: 1 2 3 4 [5] 6 7 8 9 10 ... 18