18 lines
444 B
C++
18 lines
444 B
C++
#include "backend/command.hpp"
|
|
#include "natives.hpp"
|
|
|
|
namespace big
|
|
{
|
|
class heal : command
|
|
{
|
|
using command::command;
|
|
|
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
|
{
|
|
ENTITY::SET_ENTITY_HEALTH(self::ped, PED::GET_PED_MAX_HEALTH(self::ped), 0, 0);
|
|
PED::SET_PED_ARMOUR(self::ped, PLAYER::GET_PLAYER_MAX_ARMOUR(self::id));
|
|
}
|
|
};
|
|
|
|
heal g_heal("heal", "HEAL", "HEAL_DESC", 0);
|
|
} |