Fixed server_changelevel (fsfod)

Added dod deathmsg stock (Pimp_Daddy)
This commit is contained in:
David Anderson 2004-09-16 22:35:12 +00:00
parent 4754ccdd1d
commit 58578690ad
2 changed files with 14 additions and 1 deletions

View File

@ -37,7 +37,7 @@ forward plugin_cfg();
forward plugin_end(); forward plugin_end();
/* Function called to handle changelevel */ /* Function called to handle changelevel */
forward server_changelevel(); forward server_changelevel(map[]);
/* Called on log message. */ /* Called on log message. */
forward plugin_log(); forward plugin_log();

View File

@ -162,6 +162,19 @@ stock make_deathmsg(killer,victim,headshot,weapon[])
return 1 return 1
} }
/* Creates a death message. */
stock dod_make_deathmsg(killer,victim,weaponNUM)
{
message_begin(MSG_ALL,get_user_msgid("DeathMsg"),{0,0,0},0)
write_byte( killer )
write_byte( victim )
write_byte( weaponNUM)
message_end()
return 1
}
/* Kills a user without a message. */ /* Kills a user without a message. */
stock user_silentkill(index) stock user_silentkill(index)
{ {