Raised This Month: $ Target: $400
 0% 

remember (hp)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
flamin
BANNED
Join Date: Jul 2009
Location: Los Teques
Old 03-13-2010 , 11:46   remember (hp)
Reply With Quote #1

Hi! I think this post to help me able to remember the hp for the last round and enforcing when i'm alive and i am the hp for the last round! My code is this:

PHP Code:
public cmd_hpteam(id)
{
    if(
is_user_alive(id) && id != 0) { pug_msg_tmp_empty(id,"PUG_CMD_NOTALLOWED"); }
    else
    {
        static 
Players[32], name[32]
        new 
playerCountiplayer
        get_players
(PlayersplayerCount"ah")

        new 
teamid pug_get_client_team(id)
        for (
i=0i<playerCounti++)
        {
            
player Players[i]
            if(
teamid == pug_get_client_team(player) ) continue;
            
get_user_name(player,name,31)

            
client_print(id,print_chat,"%s %L",pug_header2,id,"PUG_AUX_HP",is_user_aliveplayer ) ? get_user_health(player) : 0get_user_armor(player), name)  
        }
    }
    return 
PLUGIN_HANDLED

It should create a variable? For that i remember the hp for the last round?

This is what records the hp player: get_user_health(player)

I can do to which i save the hp? And you can see in a new round?
flamin 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:35.


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