Scripting/Squirrel/Functions/Player.Admin: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
mNo edit summary |
mNo edit summary |
||
Line 9: | Line 9: | ||
This function is just a variable. | This function is just a variable. | ||
There are no built-in commands for admins, like they used to be in earlier versions. | There are no built-in commands for admins, like they used to be in earlier versions. | ||
</pre> | |||
== Example == | |||
So you can make a player admin, then create command for him, like: | So you can make a player admin, then create command for him, like: | ||
<pre> | |||
if( cmd == "heal" ) | if( cmd == "heal" ) | ||
{ | { |
Revision as of 14:32, 12 December 2018
Syntax
- Sets player as admin
Player.Admin Player.Admin = true (1) / false (0)
Description
This function is just a variable. There are no built-in commands for admins, like they used to be in earlier versions.
Example
So you can make a player admin, then create command for him, like:
if( cmd == "heal" ) { if( player.Admin ) { player.Health = 100; } }