Garry's Mod

Garry's Mod

166 betyg
[E2] Doragon's AdminCore & other functions
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Content Type: Addon
Addon Type: Tool
Filstorlek
Lades upp
Uppdaterades
41.943 KB
18 maj, 2014 @ 13:09
9 feb, 2021 @ 5:16
46 ändringsnotiser ( visa )

Abonnera för att ladda ner
[E2] Doragon's AdminCore & other functions

Beskrivning
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 kommentarer
d4v3 | the Supreme Being 21 sep, 2023 @ 7:12 
i need the github site :eagletear:
d4v3 | the Supreme Being 21 sep, 2023 @ 5:53 
github?
Chirp 12 jul, 2019 @ 16:12 
I can give you the fix if you want to just update it
Doragon  [skapare] 12 jul, 2019 @ 9:21 
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.
Chirp 10 jul, 2019 @ 22:10 
entity:setSubMaterial is defined incorrectly and causes issues for servers with this installed
Doragon  [skapare] 3 nov, 2016 @ 12:05 
As a replacement you can use the concmd() function with a ban command, if it's setup correctly it should work fine
Doragon  [skapare] 3 nov, 2016 @ 11:24 
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  [skapare] 2 nov, 2016 @ 12:46 
yes it can
Sanders 3 okt, 2016 @ 1:00 
my e2 no longer works and its valid i need some help as to why