Scripting/Squirrel/Functions/Player.Admin: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "== Syntax == *''Set's player as admin'' <pre>Player.Admin Player.Admin = true (1) / false (0)</pre> == Description == <pre> This function is just a variable. There are no b...")
 
mNo edit summary
Line 1: Line 1:
== Syntax ==
== Syntax ==


*''Set's player as admin''
*''Sets player as admin''
<pre>Player.Admin
<pre>Player.Admin
Player.Admin = true (1) / false (0)</pre>
Player.Admin = true (1) / false (0)</pre>
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.
So you can make a player admin, then create command for him, like:
if( cmd == "heal" )
{
    if( player.Admin )
    {
          player.Health = 100;
    }
}
</pre>
</pre>



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.

So you can make a player admin, then create command for him, like:
if( cmd == "heal" )
{
     if( player.Admin )
     {
           player.Health = 100;
     }
}

Related Functions