Blockland Forums > Modification Help
Infection on death
MrPickle:
--- Code: ---for(%i=0;%i<ClientGroup.getCount();%i++){
%cl = ClientGroup.getObject(%i);
%cl.Backup();
if(%team){
%cl.team = 0;
%cl.player.kill();
%team = 0;
} else {
%cl.team = 1;
%cl.player.kill();
%team = 1;
}
}
--- End code ---
That'll split the players.
Rolland:
--- Quote from: MrPickel on June 29, 2007, 10:58:00 AM ---
--- Code: ---for(%i=0;%i<ClientGroup.getCount();%i++){
%cl = ClientGroup.getObject(%i);
%cl.Backup();
if(%team){
%cl.team = 0;
%cl.player.kill();
%team = 0;
} else {
%cl.team = 1;
%cl.player.kill();
%team = 1;
}
}
--- End code ---
...
--- End quote ---
You forgot a bracket, not big, but I added it for you...
MrPickle:
Oh Yeah Thanks. Ill Edit.
Eryehk:
Does anyone have a solution yet?
MrPickle:
For what we answered everything you asked.