1
Modification Help / Re: VIP Mod Syntax Problem
« on: April 26, 2014, 03:49:02 AM »use hasItemOnList with the autoVIP list and %this.bl_id
If it's true then set them to VIP.
Mind giving me a full function for that?
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.
use hasItemOnList with the autoVIP list and %this.bl_id
If it's true then set them to VIP.
forget
10/10 worth a 4 day bump gg.
This isn't gonna auto set them to VIP when they join just FYI.
can i be admin??????
Your second function misses a }.
And you're setting %vict but using $vict later.
if(!#%#client.isVIP)
package VIP
{
function serverCmdMakeVIP(%client,%victim)
{
//next we start the code here as we use the command /makeVip {name}
//You want to make sure the server knows what %victim is, so we do:
%vict = findClientByName(%victim);
//%vict will now be used instead of %victim so the server recognizes it.
//now we need to make sure that the player is a Admin
if(%client.isAdmin)
{
//lets make sure the person isn't already a VIP
if(%client.isVIP)
return; //return it so it can't do anything else.
else{
//lets start using the victim to become VIP
%vict.isVIP = 1;
announce("\c2" @ %vict.name @ " has become VIP (Auto)");
//now we need to add the person to a list, in RTB, by using Prefs.
$Pref::Server::AutoVIPList = addItemToList($Pref::Server::AutoVIPList,%vict.bl_id); //this will add them to the VIP list with there BL_ID
export("$Pref::Server::*","config/server/prefs.cs"); //making sure we have it right, we'll export this pref.
}
}
else
messageClient(%client,'',"You must be an Admin to use this command!");
}
function ServerCMDUnVIP(%client,%victim)
{
%vict = findClientByName(%victim)
if(%client.isAdmin)
{
if(!%client.isVIP)
return;
else{
$vict.isVIP = 0;
announce("\c2 @ %vict.name @ " has been De-VIP'd (Auto)");
$Pref::Server::AutoVIPList = removeItemFromList($Pref::Server::AutoVIPList,%vict.bl_id);
export("$Pref::Server::*","config/server/prefs.cs");
}
}
};
activatePackage(VIP);
Scoot, were you banned from Bondant's server?. Its me, ßiller. Add my name cause im an admin.
The hosting service appears to be under a DoS attack right now. The patterns of the downtime looks like it.
I just took random footage and put it together in like, 2 minutes, I don't work hard on placeholders.
Don't worry, I'll be buying the program soon, no watermark for the permanent one.It's in 3.2, not 1.0.0, everything will be much prettier in the future, because everything obviously has to be pretty in beta/alpha.