P.S
try
register_message(get_user_msgid("DeathMsg"), "message_DeathMsg")
public message_DeathMsg()
{
static killer, weapon[32], weaponid//, victim, headshot;
killer = get_msg_arg_int(1);
//victim = get_msg_arg_int(2);
//headshot = get_msg_arg_int(3);
get_msg_arg_string(4, weapon, charsmax(weapon));
if(equali(weapon, "grenade"))
formatex(weapon, charsmax(weapon), "hegrenade");
formatex(weapon, charsmax(weapon), "weapon_%s", weapon);
weaponid = get_weaponid(weapon);
if(!TrieGetCell(gCustomWeapons, "piorun", weaponid))
{
set_msg_arg_string(4, "knife");
return PLUGIN_CONTINUE;
}
return PLUGIN_CONTINUE;
}
tylko nie jestem pewien tego if(!TrieGetCell(gCustomWeapons, "piorun", weaponid))
chyba tak powinno być a nie tak jak up
register_message(get_user_msgid("DeathMsg"), "message_DeathMsg")
public message_DeathMsg()
{
static killer, weapon[32], weaponid//, victim, headshot;
killer = get_msg_arg_int(1);
//victim = get_msg_arg_int(2);
//headshot = get_msg_arg_int(3);
get_msg_arg_string(4, weapon, charsmax(weapon));
if(!TrieGetCell(gCustomWeapons, "piorun", weapon))
{
set_msg_arg_string(4, "knife");
return PLUGIN_CONTINUE;
}
return PLUGIN_CONTINUE;
}
Użytkownik Cypis' edytował ten post 25.05.2011 16:26