View Single Post
.:cs.stambeto:.
Senior Member
Join Date: Feb 2010
Location: Bulgaria
Old 07-21-2012 , 16:19   Re: When someone kills with a headshot to give him a HE grenade.
Reply With Quote #9

Quote:
Originally Posted by quilhos View Post
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx> 
#include <fun>

#define PLUGIN "HS give HE"
#define VERSION "1.0"
#define AUTHOR "Freestyle"

public plugin_init() {
register_plugin(PLUGINVERSIONAUTHOR)
register_event("DeathMsg""deadmsg""a");
}

public 
deadmsg()
{
    new 
kid read_data(1);
    
    if(
read_data(3))
    {
        
give_item(kid"weapon_hegrenade");
    }

I think this would work.
L 07/21/2012 - 23:180: [AMXX] Displaying debug trace (plugin "granade.amxx")
L 07/21/2012 - 23:180: [AMXX] Run time error 3: stack error


Only this plugin works on my csdm can I get it lighten code
Attached Files
File Type: sma Get Plugin or Get Source (award_nades.sma - 768 views - 13.7 KB)

Last edited by .:cs.stambeto:.; 07-21-2012 at 16:26.
.:cs.stambeto:. is offline