AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   roundtime and player respawn (https://forums.alliedmods.net/showthread.php?t=118300)

liryck 02-09-2010 17:08

roundtime and player respawn
 
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



NiQu 02-09-2010 17:17

Re: roundtime and player respawn
 
You want to make so you can see how much damage your taking?
And how much damage taken when you died?


All times are GMT -4. The time now is 07:23.

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