---Client stuff
clientcmdclearDatablocks()
{
deleteVariables("$data*"); //remove all datablock variables in place
$datalists = 0; //set placemarker to 0
}
clientcmdsendDatablock(%data)
{
$data[mFloor($datalists)] = %data; //adding datablocks to a list
$datalists++; //increment placer
}
---Server stuff
servercmdRequestData(%cl)
{
//get all Armor datablocks and
commandtoclient(%cl,'sendDatablock',%datavariable); //Tell the client to receive a datablock
}
servercmdChangeData(%cl,%armor)
{
if(!isObject(%cl.player) || !%cl.player.isAdmin) //check if a player exists or a player is not admin
return; //stop
%cl.player.setDatablock(%armor); //set the player's datablock
}
you will have to do some things to make this functional, and I don't expect you to use exactly this