NoOb needs help making a plugin
Complete noob here in need of either a plugin or help building a plugin for metamod that will allow users to freeze and unfreeze props using the ent_fire commands, A: without sv_cheats being on and B: commands such as freeze and unfreeze that allow the user to type bind (key) freeze, and bind (key) unfreeze. I know that for the sv_cheats portion you have to use AcceptEntityInput(ent, "DisableMotion", -1, -1, 0), and probably AcceptEntityInput(ent, "EnableMotion", -1, -1, 0). That is about the extent of what i know about this, However i am very willing to learn. I tend to learn better by first hand experience and not by reading, this is why i have come here. Any help would be greatly appreciated.
|
Re: NoOb needs help making a plugin
What i have so far is...
#include <sourcemod> public Plugin:myinfo = { name = "freeze unfreeze plugin", author = "MoOfTaStIc", description = "My first plugin ever", version = "1.0.0.0", url = "http://www.sourcemod.net/" }; public OnPluginStart() { native bool:AcceptEntityInput(ent, "DisableMotion", -1, -1, 0) native bool:AcceptEntityInput(ent, "EnableMotion", -1, -1, 0) } |
All times are GMT +2. The time now is 04:21. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.