Raised This Month: $ Target: $400
 0% 

[HELP] health problem in 35hp and 35hp_2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 11-06-2013 , 12:41   Re: [HELP] health problem in 35hp and 35hp_2
Reply With Quote #1

Quote:
Originally Posted by m.touqeerafzal View Post
there are compilation error in this code... plz help me out...

plz i dont know this programming language.... so kindaly help me in these checks.. i.e mapname and SetHP
OK, here you have. Test it

Improve your writing plzzzzzzz.

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

new g_enabled

public plugin_init()
{
        
register_plugin("35HP Map Only 35HP""1.0""Name");

        new 
mapname[20]
        
get_mapname(mapnamecharsmax(mapname))
 
        if(
containi(mapname"35hp"))
                
g_enabled true
 
        RegisterHam
(Ham_Spawn"player""Fwd_Ham_Spawn_Post"1);
}
 
public 
Fwd_Ham_Spawn_Post(id)
        if (
g_enabledset_task(0.1"SetHP"id);
  
public 
SetHP(id)
{
        if (
is_user_alive(id))
                
set_user_health(id35);

This plugin should work in every map that have 35hp in their mapname.

@Kellan123, what are you doing? No..

Last edited by baneado; 11-06-2013 at 12:44.
baneado 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 23:19.


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