Raised This Month: $ Target: $400
 0% 

get_user_frags . please help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-10-2009 , 12:25   Re: get_user_frags . please help
Reply With Quote #7

Lol, messed with these colors...
Code:
new g_maxplayers;
public plugin_init() 
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    set_task(1.0, "pokazivalka", 1, "", 0, "b")
    g_maxplayers = get_maxplayers(); 
}
public pokazivalka()
{
    new fragi[5], smerti[5], hp[5]
    for( new id = 1; id <= g_maxplayers; id++ )
    {
        get_user_frags(id, fragi, sizeof fragi -1)
        get_user_deaths(id, smerti, sizeof smerti -1)
        get_user_health(id, hp, sizeof hp -1)
        
        set_hudmessage(255, 0, 255, 0.01, 0.15, 0, 6.0, 2.0)
        show_hudmessage(id, "Health: %s HP^nFrags: %s^nDeaths: %s", hp, fragi, smerti)
          
    }
}
SnoW is offline
Send a message via MSN to SnoW
 



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 09:12.


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