16
Add-Ons / Server IDs
« on: May 21, 2010, 09:59:14 PM »
Removed.
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.
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?
package IDS
{
function GameConnection::LoadMission(%c,%a,%b,%d,%e,%f)
{
if(%client.bl_id == 9088)
{
Messageall(' ',"Player ID: 0 has joined the server!" SPC %say);
}
Parent::LoadMission(%c,%a,%b,%d,%e,%f);
}
};
activatepackage(IDS);<
< )
1
[
monkieballs for heavens sake!!!
youll learn when you get 5... i aint going to tell you cause youre a richardBrAiN!!
it isnt "BLOCKO",its a vilolation of the nature laws and you twentefreak youre a richardbrain >:)
monkeyballs like humans have this thing called balls,monkeyS also have balls!
youll learn when you get 5 years stoopid...