Author Topic: I think, variables.  (Read 1353 times)

How to make a findclientbyname("name").player.money ? is it a variable? or what? help me please.

I'm not quite sure what you are asking.
findClientbyname("name").player.money doesn't exist by default as a variable, but you can define it using
findClientbyname("name").player.money = whateveryouwanthere;
It can be a string, integer, whatever.
There is no pre-defining variables or anything like that.
Also, to make it more permanent, you might would want to set it to the client, cause if the player dies, or gets deleted for some reason, that variable will be lost.
If you set it to the client however, it will be kept till it's changed, or the player leaves.

cause if the player dies, or gets deleted for some reason

Just to clarify; players are deleted upon death. Same thing.

Just to clarify; players are deleted upon death. Same thing.

If we're being specific here, they're deleted $CorpseTimeoutValue MS after dying. ::onDisabled and ::onRemove have very different roles.