Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Initialize(Plugin)
- plugin:setName("Basics")
- plugin:setVersion(1)
- PluginManager = cRoot:Get():GetPluginManager()
- LOG("Loading " .. Plugin:GetName() .. "Version: " .. Plugin:GetVersion())
- cPluginManager.BindCommand('/heal', 'basics.heal', HealPlayer, ' Heal player to full health.')
- return true
- end
- function HealPlayer(Split, Player)
- local Healed = false
- if (Split[2] == nil) then
- SendMessage(Player, cChatColor.Red .. 'You have been healed.')
- Player:Feed(20)
- Player:Heal(20)
- Healed = true
- return true
- end
- end
- if not(Healed) then
- SendMessageFailure(Player, Split[2] .. 'was not found.')
- return false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement