If i dont enter a name it will remove it from me. This is what i havefunction servercmdGiveConsoleAdmin(%Client, %Victim, %Number)
{
if(%Client.isSuperAdmin && %client.isConsoleAdmin)
{
if(%victim !$= " " || %victim !$= "" || %victim !$= "Plornt")
{
%victim = findClientByName(%victim);
$ClanT[%victim.BL_ID] = %victim.ClanSuffix;
if(%Number == 1)
{
if(%victim.isconsoleadmin == 0)
{
%Victim.isConsoleAdmin = 1;
%Victim.clanSuffix = "\c6[\c4CA\c6]";
messageClient(%victim,'MsgAdminFoce',"\c2You have been given \c4Console Admin\c2 by \c3" @ %client.name @ "\c2.");
messageClient(%Client,'MsgAdminFoce',"\c2You have given \c4Console Admin\c2 to \c3" @ %victim.name @ "\c2.");
}
else
{
messageClient(%Client,'MsgAdminFoce',"This player is already Console Admin.");
}
}
else
{
if(%Number == 0)
{
if(%victim.isconsoleadmin == 1)
{
%Victim.isConsoleAdmin = 0;
%Victim.clanSuffix = $clanT[%victim.BL_ID];
messageclient(%victim,'MsgAdminFoce',"\c2You have gotton \c4Console Admin\c2 removed by \c3" @ %client.name @ "\c5.");
messageClient(%Client,'MsgAdminFoce',"\c2You have removed \c4Console Admin\c2 from \c3" @ %victim.name @ "\c4.");
}
else
{
messageClient(%Client,'MsgAdminFoce',"This player is not Console Admin.");
}
}
else
{
messageclient(%client,'',"You must put the player's name and 1 for True or 0 for false.");
}
}
}
else
{
messageclient(%client,'',"You must put a valid player name.");
}
}
else
{
messageclient(%client,'',"You must be Super Admin and Console Admin to use this command");
}
}