Blockland Forums > Modification Help
Setting Admin Levels
phflack:
i kinda figured what each did, but this clears up any doubt i had :D
message is unnecessary for me, so i think i'll leave it out
for the %client.sendplayerlistupdate();, should i do that to every client or just the one i'm deadmining?
DrenDran:
--- Quote from: phflack on January 19, 2011, 10:17:57 PM ---i kinda figured what each did, but this clears up any doubt i had :D
message is unnecessary for me, so i think i'll leave it out
for the %client.sendplayerlistupdate();, should i do that to every client or just the one i'm deadmining?
--- End quote ---
I can't tell if it means to send updates from %client to everyone or to client from everyone else.
But doing it to everyone can't hurt, so go for it.
phflack:
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();
DrenDran:
--- Quote from: phflack on January 19, 2011, 11:48:13 PM ---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();
--- End quote ---
yes, I know
phflack:
oh,
--- Quote from: DrenDran on January 19, 2011, 10:25:11 PM ---%client to everyone
--- End quote ---
confused me