%client.isAdmin = 1;%client.isSuperAdmin = 0;%client.sendPlayerListUpdate();commandtoclient(%client,'setAdminLevel',1);
%client.isAdmin = 1;%client.isSuperAdmin = 1;%client.sendPlayerListUpdate();commandtoclient(%client,'setAdminLevel',2);
-code snip-
thanks, then to deadmin, both isadmin and issuperadmin would be 0, and the adminlevel? also, for the sendplayerlistupdate, should i put that in a for loop to target everybody after deadmining people?
%client.isAdmin = 1; //is the actual setting of the persons status that the server references when the client tries to do something%client.isSuperAdmin = 0; //like before but for super admin%client.sendPlayerListUpdate(); //this puts the S or A next to their name on their list they bring up with F2commandtoclient(%client,'setAdminLevel',1); //This tells the client to unlock the admin options gui, and not popup the box asking for a password
%client.isAdmin = 0; //is the actual setting of the persons status that the server references when the client tries to do something%client.isSuperAdmin = 0; //like before but for super admin%client.sendPlayerListUpdate(); //this puts the S or A next to their name on their list they bring up with F2commandtoclient(%client,'setAdminLevel',0); //This tells the client to unlock the admin options gui, and not popup the box asking for a password
messageall('msgadminforce',"\c2" @ %client.name @ " has become admin. (Manual)");
i kinda figured what each did, but this clears up any doubt i had :Dmessage is unnecessary for me, so i think i'll leave it outfor the %client.sendplayerlistupdate();, should i do that to every client or just the one i'm deadmining?
well, from the server to ALL the clients, ie:for(%i = 0; %i <= ClientGroup.getCount(); %i++){ %person = ClientGroup.getObject(%i); %person.sendPlayerListUpdate();}instead of%client.sendPlayerListUpdate();
%client to everyone