Blockland Forums > Suggestions & Requests
Script requests
Headcrab Zombie:
--- Quote from: ShadowZero on November 13, 2012, 07:02:23 PM ---A script that lets you select a playertype to always spawn with
--- End quote ---
I believe all you'd need is a way to easily set datablock, and then a small modification to the default player persistence
MARBLE MAN:
function servercmdplayerstuffs(%client)
{
for(%i = 0; %i < dataBlockGroup.getCount() ; %i++)
{
%datablock = dataBlockGroup.getObject(%i);
if(getSubStr(%datablock.getName(),0,6) $="player")
{
%data = trim(%datablock.getName());
%client.chatmessage("<color:ffffff>" SPC %data);
}
}
}
Here is a script that finds playertypes and any datablock with the word "player" first...
Hope it helps :P
Headcrab Zombie:
--- Quote from: MARBLE MAN on November 16, 2012, 01:22:19 AM ---if(getSubStr(%datablock.getName(),0,6) $="player")
--- End quote ---
what
if(%datablock.getClassName() $= "PlayerData")
also gj making a laggy servercmd that anyone can spam
Swollow:
I already knew how to do that, I've just been lazy playing tf2 and stuff, sorry
MARBLE MAN:
--- Quote from: Headcrab Zombie on November 16, 2012, 02:39:22 AM ---what
if(%datablock.getClassName() $= "PlayerData")
also gj making a laggy servercmd that anyone can spam
--- End quote ---
meh