Author Topic: player change datablock function  (Read 497 times)

i need a little script that all it does is change the player's datablock

something like this

package blah
{
function serverCmdBlah (<i need to know what to include here>) {
<i have no clue what goes here to change the playertype>
}
}
activatepackage(blah);


so when you type "/blah" you have a different playertype
« Last Edit: March 07, 2009, 03:36:06 PM by BobAndRob »

Do you want to make it change YOUR datablock or someone elses?

package blah {

     function serverCmdBlah (%client) {
     (findClientByName("healbadbad")).playerdatablock = playerstandardArmor;
     }
};
activatepackage(blah);


something along these lines
« Last Edit: March 08, 2009, 01:20:29 PM by Healbadbad »

So you want it to only change you? Or do you want to be able to type in like /blah (player name) (datablock) and then change them?