Raised This Month: $ Target: $400
 0% 

Help me


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
made.tn
BANNED
Join Date: Nov 2011
Old 11-26-2011 , 11:24   Help me
Reply With Quote #1

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

public plugin_init() {
     
register_plugin("headshotRestore""1.0""made.tn")
     
RegisterHam(Ham_Killed"player""PlayerKilledPost"1)
}
public 
PlayerKilledPost(victimattackershouldgib) { 
    
    
    if(!
is_user_connected(attacker)) 
        return 
PLUGIN_CONTINUE

    
if(victim == attacker
        return 
PLUGIN_CONTINUE 

    
if(get_pdata_int(victim75) != HIT_HEAD
        return 
PLUGIN_CONTINUE
    
    
if(get_user_health(attacker) == 100)
        
client_print(attackerprint_chat"Your life already is 100")
    else {
    
set_user_health(attacker100)
    
client_print(attackerprint_chat"Your life changed to 100")
    }
     return 
PLUGIN_HANDLED

but there is an error

//// hprestore.sma
// C:\AMX Mod X\files\base\scripting\hprestore.sma(36) : warning 217: loose indentation
// Header size: 564 bytes
// Code size: 984 bytes
// Data size: 448 bytes
// Stack/heap size: 16384 bytes; estimated max. usage=781 cells (3124 bytes)
// Total requirements: 18380 bytes
//
// 1 Warning.
// Done.
//
// Compilation Time: 0,28 sec

Help
and thanks
made.tn is offline
fl0werD
Senior Member
Join Date: May 2011
Old 11-26-2011 , 11:26   Re: Help me
Reply With Quote #2

This is not error!
fl0werD is offline
Send a message via ICQ to fl0werD
made.tn
BANNED
Join Date: Nov 2011
Old 11-26-2011 , 11:30   Re: Help me
Reply With Quote #3

ok
made.tn is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-26-2011 , 11:31   Re: Help me
Reply With Quote #4

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

public plugin_init() 

    
register_plugin("headshotRestore""1.0""made.tn"
    
RegisterHam(Ham_Killed"player""PlayerKilledPost"1


public 
PlayerKilledPost(victimattackershouldgib
{  
    if(!
is_user_connected(attacker))  
        return 
PLUGIN_CONTINUE 
    
    
if(victim == attacker)  
        return 
PLUGIN_CONTINUE  
    
    
if(get_pdata_int(victim75) != HIT_HEAD)  
        return 
PLUGIN_CONTINUE 
    
    
if(get_user_health(attacker) == 100
        
client_print(attackerprint_chat"Your life already is 100"
    else 
    { 
        
set_user_health(attacker100
        
client_print(attackerprint_chat"Your life changed to 100"
    } 
    return 
PLUGIN_HANDLED 

Fixed...

This plugin is better: http://forums.alliedmods.net/showthread.php?p=455096
__________________

Last edited by kramesa; 11-26-2011 at 11:32.
kramesa 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 08:33.


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