Raised This Month: $ Target: $400
 0% 

Invalid player 8


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 06-21-2012 , 02:16   Re: Invalid player 8
Reply With Quote #4

PHP Code:
public showStatus(id)
{
    if(
get_pcvar_num(cvar_playerinfo)) {
        if(
is_user_alive(id)) {
           
            static 
name[33], pid 
            pid 
read_data(2)
            if( !
is_user_alivepid ) )
                 return 
PLUGIN_HANDLED
            
get_user_name(pidname32)
            
            switch(
cs_get_user_team(pid)) {
                case 
CS_TEAM_T: {
                    
set_hudmessage(1002550, -1.00.8000.013.00.010.01, -1)
                    
ShowSyncHudMsg(idhudmessage4"Kaliniai: %s [%d HP]"nameget_user_health(pid))
                    
                }
                case 
CS_TEAM_CT: {
                    
set_hudmessage(0255100, -1.00.8000.013.00.010.01, -1)
                    
ShowSyncHudMsg(idhudmessage4"Priziuretojai: %s [%d HP]"nameget_user_health(pid))                
                }
            }
        }
    }
    return 
PLUGIN_HANDLED;

Edit: I didn't read hornet's post :/
__________________

Last edited by Neeeeeeeeeel.-; 06-21-2012 at 02:18.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
 



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 06:10.


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