Raised This Month: $ Target: $400
 0% 

Help me


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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