Thanks, I should've known this. But now, my code actually needs the %client, since it's doing an autocheck for whether you should be levelled up.
Naming it %client won't magically make it a client. The first argument will always be the object is called upon (on your case, the brick). A name is just a name. You could name it %cheesePizzaAndBurgers and it would still be a brick. All it does is give
you, the programmer, a description of what it is. The scripting engine doesn't care at all.
If you need client, then you need a method that is called on death that takes a client parameter. Just adding client to the arguments doesn't do anything because the code calling it won't be giving it that value
This doesn't work:
function servercmdStats(%client)
{
talk("Your Level:" SPC %client.level);
}
The only reason for this not to work is if %client.level isn't defined. Make sure your leveling up before you check this
Also, I forgot what talk does. It either sends client side chat messages to server, or announces server side message to everyone. Neither is what you want. You want:
messageclient(%client,'','Your level: %1', %client.level);