My favorites
▼
|
Sign in
evolvemod
An advanced admin mod for Garry's Mod.
Project Home
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
412
attachment: sh_aidisable.lua
(580 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local PLUGIN = {}
PLUGIN.Title = "AI Disable/Enable"
PLUGIN.Description = "Enable or disable AI."
PLUGIN.Author = "Mattocaster 6"
PLUGIN.ChatCommand = "ai"
PLUGIN.Usage = "1=ai off 0=ai on>"
PLUGIN.Privileges = { "AI Control" }
function PLUGIN:Call( ply, args )
if ( ply:EV_HasPrivilege( "AI Control" ) ) then
RunConsoleCommand( "ai_disable")
evolve:Notify( evolve.colors.blue, ply:Nick(), evolve.colors.white, " has toggled the ai. " )
else
evolve:Notify( ply, evolve.colors.red, evolve.constants.notallowed )
end
end
evolve:RegisterPlugin( PLUGIN )
Powered by
Google Project Hosting