Thread: FrostNades
View Single Post
STr!ker
Senior Member
Join Date: Jun 2009
Location: Germany
Old 03-18-2012 , 06:40   Re: FrostNades
Reply With Quote #536

PHP Code:
// override grenade kill message with skull and crossbones
public msg_deathmsg(msg_id,msg_dest,msg_entity)
{
    new 
victim get_msg_arg_int(2);
    if(!
is_user_connected(victim) || !frostKilled[victim]) return PLUGIN_CONTINUE;

    static 
weapon[8];
    
get_msg_arg_string(4,weapon,7);
    if(
equal(weapon,"grenade")) set_msg_arg_string(4,"frostgrenade");

    
frostKilled[victim] = 0;
    return 
PLUGIN_CONTINUE;

Sry but this dont work for me:

if(equal(weapon,"grenade")) set_msg_arg_string(4,"frostgrenade");

Consollog:
L 03/18/2012 - 1176: "Bam! HeadShot voll ins Knie!!!<99><STEAM_0:1:95073><CT>" killed "-=SH=- *Stammi | BLuTsWenDe<101><STEAM_0:0:7313><TERRORIST>" with "grenade" (attacker_position "600 1504 -123") (victim_position "500 1631 -123")
STr!ker is offline