Raised This Month: $ Target: $400
 0% 

roundtime and player respawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
liryck
Senior Member
Join Date: Mar 2007
Location: Venezuela
Old 02-09-2010 , 17:08   roundtime and player respawn
Reply With Quote #1

hi there i have this function. what i want to make is if i died is all cool it shows me the dmg. but i want that it show me too when im alive only for some secs.

i mean if the rounds ends the player spawn again and like for 10 or 15 segs that player is availible to see the dmg of the last round latter of that time u can't.

if any 1 could help me with this

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

        new 
tmp_hitstmp_dmgcheck
        
for (i=0i<playerCounti++)
        {
            
player Players[i]
            
tmp_hits pug_hits[id][player]

            if( 
tmp_hits )
            {
                
check 1
                tmp_dmg 
pug_dmg[id][player]

                if(
player == idclient_print(id,print_chat,"%s %L",pug_header,id,"PUG_AUX_DMG_SELF",tmp_hits,tmp_dmg)
                else
                {
                    
get_user_name(player,name31)
                    
client_print(id,print_chat,"%s %L","-->",id,"PUG_AUX_DMG",tmp_hits,tmp_dmg,name)
                }
            }
          }

        
tmp_hits pug_hits[id][0]
        if(
tmp_hits)
        {
            
tmp_dmg pug_dmg[id][0]
            
client_print(id,print_chat,"%s %L",pug_header,id,"PUG_AUX_DMG","WorldSpawn",tmp_hits,tmp_dmg)
        }
        else if(!
checkclient_print(id,print_chat,"%s %L",pug_header,id,"PUG_AUX_NODMG")
    }
    return 
PLUGIN_HANDLED

liryck is offline
Send a message via MSN to liryck
 


Thread Tools
Display Modes

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 07:23.


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