Garry's Mod

Garry's Mod

162 ratings
[E2] Doragon's AdminCore & other functions
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
File Size
Posted
Updated
41.943 KB
18 May, 2014 @ 1:09pm
9 Feb, 2021 @ 5:16am
46 Change Notes ( view )

Subscribe to download
[E2] Doragon's AdminCore & other functions

Description
Hello! Today I show you my extension for the expression 2 gate. This extension add powerfull functions for admins, and some non-admin functions.

List of NON-admin only functions:

- E:plyColor()
return: vector
description: return the player model color of the player E in a vector

- E:weaponColor()
return: vector
description: return the physgun color of the player E in a vector

-E:setModel(string)
return: nothing
description: set the model of the entity E

-E:getCameraDistance()
return: number
description: get the camera distance of the vehicle E

-E:setCameraDistance(number)
return: nothing
description: set the camera distance of the vehicle E

-E:getWeapons()
return: array
description: return an array of all the weapons the player E is carrying

-E:getWeaponEnt(string)
return: entity
description: Returns the player E weapon's for the specified class

-E:selectWeapon(string)
return: nothing
description: Set the weapon the player E is currently holding (a player can't set a weapon he is not carrying)


List of admin only function:

-entSpawn(string,vector)
return: entity
description: spawn an entity for the specified class at the specified position
IMPORTANT:this function can spawn ALL type of entities so be carefull! some entities can crash your server!)

-E:plySetColor(vector)
return: nothing
description: set the player model color of the player E with a vector color

-E:setWeaponColor(vector)
return: nothing
description: set the physgun color of the player E with a vector color

-E:kick(string)
return: nothing
description: kick the player E with the specified reason

-E:ban(number,string)
return: nothing
description: ban the player E with the specified time (in minutes) and reason

-E:setClip1(number)
return: nothing
description: set the primary ammo clip of the player E

-E:setClip2(number)
return: nothing
description: set the secondary ammo clip of the player E

-E:give(string)
return: nothing
description: give a weapon to the player E of the specified class

-E:stripWeapon(string)
return: nothing
description: remove the weapon of the specified class from the player E

-E:stripWeapons()
return: nothing
description: remove ALL the weapons of the player E

-E:setAmmo(number, string)
return: nothing
description: set a specified ammo count for the specified ammo type of the player E

-E:kill()
return: nothing
description: Kill the player E

-E:killSilent()
return: nothing
description: Kill the player E without notice


special functions:

note: these functions can be set admin only or not with console commands

-explosion(vector,number)
return: nothing
console command: allow_e2_explosion --> toggle admin/non-admin only
description: Make an explosion at the given position with the specified radius

-E:vehicleWeapon(number)
return: nothing
console command: allow_e2_vehicleWeapon --> toggle admin/non-admin only
description: add or remove mounted weapon on the vehicle E


note: a lot of functions has been added with updates, juste see in the changelogs what is added
34 Comments
d4v3 | the Supreme Being 21 Sep, 2023 @ 7:12am 
i need the github site :eagletear:
d4v3 | the Supreme Being 21 Sep, 2023 @ 5:53am 
github?
Sparky🐦 12 Jul, 2019 @ 4:12pm 
I can give you the fix if you want to just update it
Doragon  [author] 12 Jul, 2019 @ 9:21am 
Thanks for reporting but I'm not playing gmod anymore so it's more than likely that it will not be updated. If someone want to fix it themself, I'm ok with that.
Sparky🐦 10 Jul, 2019 @ 10:10pm 
entity:setSubMaterial is defined incorrectly and causes issues for servers with this installed
Doragon  [author] 3 Nov, 2016 @ 12:05pm 
As a replacement you can use the concmd() function with a ban command, if it's setup correctly it should work fine
Doragon  [author] 3 Nov, 2016 @ 11:24am 
ah, it's because the function isn't compatible with ulx. I've never used it so I don't know how do it work :/
Doragon  [author] 2 Nov, 2016 @ 12:46pm 
yes it can
Sanders 3 Oct, 2016 @ 1:00am 
my e2 no longer works and its valid i need some help as to why