Raised This Month: $ Target: $400
 0% 

HP Modification Issue: Need Help! KNIFE PLUGIN


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 12-11-2023 , 21:21   Re: HP Modification Issue: Need Help! KNIFE PLUGIN
Reply With Quote #1

same principle
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>

enum _:MOD
{
    
ACER,
    
MOD1HP,
    
MOD35HP
}

new 
modhealth

public plugin_init()
{
    
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1)
    
    
register_clcmd("say /35hp""cmd35hp");
    
register_clcmd("say /1hp""cmd1hp");
    
register_clcmd("say /acer""cmdacer");
    
set_task(1.0"hudgoster"___"b");
}

public 
cmd35hp(id)
{
    if (
is_user_admin(id))
    {
        
mod MOD35HP
        hpver
()
    }
    return 
PLUGIN_HANDLED
}

public 
cmd1hp(id)
{
    if (
is_user_admin(id))
    {
        
mod MOD1HP
        hpver
()
    }
    return 
PLUGIN_HANDLED
}

public 
cmdacer(id)
{
    if (
is_user_admin(id))
    {
        
mod ACER
        hpver
()
    }
    return 
PLUGIN_HANDLED
}

public 
fwHamPlayerSpawnPost(id)
{
    if (
is_user_alive(id))
    {
        
set_user_health(idhealth)
    }
}

public 
hudgoster()
{
    if (
mod)
    {
        
set_hudmessage(2001000, -0.98, -0.73, .effects, .holdtime0.8)
        
show_hudmessage(0"%dHP mode active"mod == MOD35HP 35 1)    
    }
}

public 
hpver()
{
    switch (
mod)
    {
        case 
ACERhealth 100
        
case MOD35HPhealth 35
        
case MOD1HPhealth 1
    
}

    new 
players[MAX_PLAYERS], numid
    get_players
(playersnum"ah")

    for (new 
0numi++)
    {
        
id players[i]
        
set_user_health(idhealth)
    }

__________________
bigdaddy424 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode