AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   amx_plyr_deaths (https://forums.alliedmods.net/showthread.php?t=230299)

ezio_auditore 11-23-2013 04:18

amx_plyr_deaths
 
how to make a function which gets called when a player dies and how to get his killer's name

ModearTTT 11-23-2013 05:50

Re: amx_plyr_deaths
 
More details? I don't make this plugin, for i don't known why and how..

ezio_auditore 11-23-2013 06:43

Re: amx_plyr_deaths
 
Quote:

Originally Posted by ModearTTT (Post 2064361)
More details? I don't make this plugin, for i don't known why and how..

i am up for a gameplay plugin in which the leaders from each team glow at roundstart...
who kills the glowing man, gets his glow...

at roundend, only glowing person surives and get extra frags and money

CyberStars 11-23-2013 09:33

Re: amx_plyr_deaths
 
Code:

public plugin_init()
{
          register_event("DeathMsg", "PlayerKilled", "a");
}

public PlayerKilled()
{
        new killerIndx = read_data(1);
        new victimIndx = read_data(2);

        if(0 < killerIndx) {
                new killerName[128];
                get_user_name(killerIndx, killerName, 127);
        }
               
        if(0 < victimIndx) {
                new victimName[128];
                get_user_name(victimIndx, victimName, 127);
        }
}



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

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