function Initialize(Plugin)
Plugin:SetName("STONED")
Plugin:SetVersion(1)
PLUGIN = Plugin
-- Command Bindings
cPluginManager.BindCommand("/pi", "STONED.pi", PluginInfo, " - display plugin version."); -- PluginInfo binding
cPluginManager.BindCommand("/j", "STONED.j", RollJoint, " - player is rolling a joint."); -- RollJoint binding
cPluginManager.BindCommand("/l", "STONED.l", SmokeJoint, " - player is smoking a joint."); -- SmokeJoint binding
LOG("Initialised " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
return true
end
function OnDisable()
LOG(PLUGIN:GetName() .. " is shutting down!")
end
-- PluginInfo
function PluginInfo(Player)
Player:SendMessage("§eSTONED v1.0.0.3")
return true
end
-- RollJoint:
function RollJoint(Player)
cRoot:Get():BroadcastChat("§b" .. Player:GetName() .. " is rolling a joint.")
return true
end
-- SmokeJoint:
function SmokeJoint(Player)
cRoot:Get():BroadcastChat("§b" .. Player:GetName() .. " is smoking a joint.")
return true
end
|
I can't create any commands.
|
|
|
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)

