Garry's Mod

Garry's Mod

336 个评价
[E2] PlyCore
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑
文件大小
发表于
更新日期
31.050 KB
2014 年 1 月 12 日 下午 5:07
2023 年 8 月 13 日 上午 9:44
17 项改动说明 ( 查看 )

订阅以下载
[E2] PlyCore

在 Sir Papate 的 2 个合集中
Marmottes.net
65 件物品
Expression 2 Core
5 件物品
描述
For more information, go to the GitHub Page[github.com]

PlayerCore

It's the PlyCore, an extension for the Expression 2 that add functions to manipulate players. All functions can be called on yourself or on other players if you have their prop protection rights.

Workshop Installation

The PlayerCore is available on the Steam Workshop! Go to the PlayerCore Workshop Page and press
Subscribe
. For can go to the Expression 2 Core Collection for more extensions.

Manual Installation

Clone this repository into your
steamapps\common\GarrysMod\garrysmod\addons
folder using this command if you are using git:

Documentation

Console Commands

sbox_e2_plycore
  • "1" - Everyone can use the functions on Everyone.
  • "2" - People can use the functions only on their friends.
  • "3" - Only admins can use functions.
  • "4" - The functions of players setting are disabled.

Lua

Hook
PlyCoreCommand(ply, target, command)

Called when a player use a command of PlyCore.

Arguments
  • "Player" - originator
  • "Player" - target
  • "string" - command

Return
"boolean" - Return true to block the command.

Functions

The following functions are protected by Protection Prop. To use them on another player, you must have their rights. Look the command "sbox_e2_plycore".

Basic Getters and Setters

Function
Return
Description
E:plyGetMass()
N
Returns the mass of the player.
E:plyGetJumpPower()
N
Returns the jump power of the player.
E:plyGetGravity()
N
Returns the gravity of the player.
E:plyGetSpeed()
N
Returns the walk speed of the player.
E:plySetPos(vector pos)
Sets the position of the player.
E:plySetAng(angle ang)
Sets the angle of the player's camera.
E:plySetHealth(N)
Sets the health of the player.
E:plySetArmor(N)
Sets the armor of the player.
E:plySetMass(N)
Sets the mass of the player. default 85
E:plySetJumpPower(N)
Sets the jump power, eg. the velocity the player will applied to when he jumps. default 200
E:plySetGravity(N)
Sets the gravity of the player. default 600
E:plySetSpeed(N)
Sets the walk and run speed of the player. (run speed is double of the walk speed) default 200
E:plySetRunSpeed(N)
Sets the run speed of the player. default 400
E:plySetWalkSpeed(N)
Sets the walk speed of the player. default 200
E:plyResetSettings()
Resets the settings of the player.

Actions

Function
Return
Description
E:plyApplyForce(vector force)
Sets the velocity of the player.
E:plyNoclip(N)
Enable or disable the player's noclip.
E:plyDisableNoclip(N)
Disables the noclip of the player.
E:plyEnterVehicle(entity vehicle)
Force the player to enter a vehicle.
E:plyExitVehicle()
Force the player to exit the vehicle he is in.
E:plySpawn()
Respawns the player.
E:plyFreeze(N)
Freezes the player.
E:plyIsFrozen()
N
Returns 1 if the player is frozen, 0 otherwise.
E:plyGod(N)
Enables of disables the godmode of the player.
E:plyHasGod()
N
Returns 1 if the player has godmode, 0 otherwise.
E:plyIgnite(N)
Ignites the player for a specific time. (in seconds)
E:plyIgnite()
Returns 1 if the player is ignited, 0 otherwise.
E:plyExtinguish()
Extinguishes the player.

Message Functions

Function
Return
Description
sendMessage(S)
Sends a message to every player.
sendMessageCenter(S)
Sends a message to every player in the center of the screen.
E:sendMessage(S)
Sends a message to the player.
E:sendMessageCenter(S)
Sends a message to the player in the center of the screen.
R:sendMessage(S)
Sends a message to a list of players.
R:sendMessageCenter(S)
Sends a message to a list of players in the center of the screen.
sendMessageColor(R)
Sends a colored message to every player.
sendMessageColor(...)
Sends a colored message to every player.
E:sendMessageColor(R)
Sends a colored message to a player.
E:sendMessageColor(...)
Sends a colored message to a player.
R:sendMessageColor(R)
Sends a colored message to a list of players.
R:sendMessageColor(...)
Sends a colored message to a list of players.

Other Functions

Function
Return
Description
E:ip()
S
Returns the ip of the player. (only if the player is admin)
热门讨论 查看全部(6)
24
2023 年 6 月 17 日 上午 7:43
置顶: Suggestion box!
Sir Papate
16
2017 年 10 月 13 日 上午 10:11
[E2 code] Noclip
Sir Papate
14
2023 年 9 月 29 日 下午 8:12
置顶: Bug reports
Sir Papate
49 条留言
Sir Papate  [作者] 6 月 1 日 上午 6:26 
@[YK] Nathan yes if you have UXL, you can restrict permission to a function by rank. Otherwise, if you know a little bit of Lua, there is a hook called before each function so you can return false to prevent the action.
ModestShoducks 5 月 29 日 上午 12:46 
thx now most dupes with wiremod work!
[YK] Nathan 2 月 18 日 下午 10:34 
Can the founder of a server "delete" a function from his server ?
[Sk$Bh]Trick or treat KID! 2023 年 11 月 5 日 上午 1:45 
[wiremod_git] Warning: Use of variadic parameter with ExtPP is not recommended and deprecated. Instead use ...<name> (which passes a table) or the `args` variable (at line 541) @entities/gmod_wire_expression2/core/custom/playercore.lua
Sanders 2023 年 8 月 10 日 上午 1:34 
so using this R:plyFreeze(1) if an input is 1 works but doing R:plyFreeze(0) they are still frozen why?
Sllake560[FR][Random] 2023 年 3 月 6 日 下午 12:46 
Possible de se give des grade ulx avec le plycore ?
Si oui possible de me dire la comande ?
SuperMonocle 2022 年 3 月 25 日 下午 3:02 
I'm trying to make a thing that highlights the last player that died - - it's only hightlighting me! I've spent hours trying to get it to work but it just isn't working!

Am I doing something wrong that I'm not noticing?
nekoz.exe 2022 年 2 月 12 日 上午 6:35 
Hi, how do i do things to my friends i wanna freeze him with the e2 playercore but don't know how to do thing on him
Advanced Plant 2021 年 9 月 11 日 上午 10:00 
Hey, thank you for making these. They add incredibly useful functions to E2, and make a-lot more possible.
Surge, seeker of sunken 2021 年 7 月 4 日 上午 11:21 
is this core working?