Raised This Month: $51 Target: $400
 12% 

35hp Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 02-21-2018 , 03:55   35hp Plugin
Reply With Quote #1

Can anyone write a plugin? Which makes all players 35hp, every round. Either he dies in previous round or not? But every neew round every players hp should be 35.
Alber9091 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-21-2018 , 04:17   Re: 35hp Plugin
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>


public plugin_init()
{
    
register_plugin("Plugin""Version""Author");

    
RegisterHam(Ham_Spawn"player""@Player_Spawn"true);
}

@
Player_Spawn(this)
{
    if(!
is_user_alive(this))
        return 
HAM_IGNORED;

    
set_user_health(this35);

    return 
HAM_IGNORED;

__________________
klippy is offline
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 02-21-2018 , 09:59   Re: 35hp Plugin
Reply With Quote #3

Quote:
Originally Posted by KliPPy View Post
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>


public plugin_init()
{
    
register_plugin("Plugin""Version""Author");

    
RegisterHam(Ham_Spawn"player""@Player_Spawn"true);
}

@
Player_Spawn(this)
{
    if(!
is_user_alive(this))
        return 
HAM_IGNORED;

    
set_user_health(this35);

    return 
HAM_IGNORED;

Ty KliPPy :O)
Alber9091 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 10:20.


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