I wrote out this thing and for some reason when id use it, itd say the killer of the victim has died, and not the person thats died him/herself. So i added victim and killer, and it doesnt compile..
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#include <cstrike>
#include <csx>
public plugin_precache()
{
precache_sound("misc/chucky1.wav")
}
public plugin_init()
{
register_plugin("move","r4nDoMz","1.0")
register_event("client_death","client_death","a")
}
public client_death(id)
{
new weapon = get_user_weapon(id)
new Killer = read_data(1)
new Victim = read_data(2)
if(weapon == CSW_KNIFE)
{
get_user_name(Victim)
get_user_name(Killer)
client_print(0, print_center, "%s killed %s with a knife!!!", Killer, Victim)
client_cmd(0,"spk sound/misc/chucky1.wav")
}
else
{
get_user_name(Killer)
get_user_name(Victim)
client_print(0, print_chat, "Player %s was killed by %s!!!", Victim, Killer)
}
}
PHP Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team
//// knifelol.sma
// C:\Documents and Settings\nick\Desktop\compiler1\knifelol.sma(28) : error 088
: number of arguments does not match definition
// C:\Documents and Settings\nick\Desktop\compiler1\knifelol.sma(29) : error 088
: number of arguments does not match definition
// C:\Documents and Settings\nick\Desktop\compiler1\knifelol.sma(35) : error 088
: number of arguments does not match definition
// C:\Documents and Settings\nick\Desktop\compiler1\knifelol.sma(36) : error 088
: number of arguments does not match definition
//
// 4 Errors.
// Could not locate output file C:\Documents and Settings\nick\Desktop\compiler1
\compiled\knifelol.amx (compile failed).
//
// Compilation Time: 0.42 sec
// ----------------------------------------
Press enter to exit ...
__________________