Scripting/Squirrel/Functions/Player.Admin

From Vice City Multiplayer
Revision as of 14:32, 12 December 2018 by Sseebbyy (talk | contribs)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

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;
     }
}

Related Functions