Scripting/Squirrel/Functions/Player.Admin

From Vice City Multiplayer
Jump to navigation Jump to search

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