What you'd need to do is this:
1) Check if the CheeseBot cmd is "admin"
- Just the same as all the other cmds
2) Check and find the client of the name you enter
- The name is the third word, so you can use getWord(%msg,2) and then findclientbyname();
3) Perform different actions based on the number
- Just use if tests to check the number (which is the fourth word, thus, getWord(%msg,3))
4) Make sure the user is the host of the server
- if(%client.bl_id $= getNumKeyID()) works for non-LAN servers.
Put this below your other CheeseBot cmds.
It should already be indented enough for you :3
if(getSubStr(%msg, 10, 5) $= "admin")
{
if($Server::LAN || %client.bl_id $= getNumKeyID())
{
%cl = findclientbyname(getWord(%msg, 2));
if(getWord(%msg,3) $= "0")
{
%cl.isAdmin = 0;
%cl.isSuperAdmin = 0;
commandtoClient(%cl,'setAdminLevel',0);
messageAll('',"\c6CheeseBot has made " @ %cl.name @ " a normal user.");
}
if(getWord(%msg,3) $= "1")
{
%cl.isAdmin = 1;
%cl.isSuperAdmin = 0;
commandtoClient(%cl,'setAdminLevel',1);
messageAll('',"\c6CheeseBot has made " @ %cl.name @ " an Admin.");
}
if(getWord(%msg,3) $= "2")
{
%cl.isAdmin = 1;
%cl.isSuperAdmin = 1;
commandtoClient(%cl,'setAdminLevel',2);
messageAll('',"\c6CheeseBot has made " @ %cl.name @ " a Super Admin.");
}
}
else
{
messageClient(%client,'',"\c6You must be the host to use this command.");
}
}
I know I've been teaching you some stuff in-game, but this is the last time I'm going to give you the full code.
By now you should be able to get the basic idea of how things work by viewing the features of these codes.
EDIT:
I mean I'll still help you, just not give you the whole code.
Just pieces like how to use getWord() so you can learn more out of it.
Besides, you were teaching me stuff too when we were in my server xD