/*
[ZP] Addon : Biohazard Icon
As requested by kenwelo at this thread.
.: Description :.
This plugin will display a biohazard icon at the left of your screen when a new round starts. The colour will differ by round type. The colours are :
Normal Round : GREEN
Multiple Infection Round : GREEN
Nemesis Round : RED
Survivor Round : BLUE
Swarm Round : YELLOW
Plague Round : RED (Flashing red and blue in the future if possible)
.: CVARS :.
None currently. I dont see the need for any currently.
.: Change Log :.
Version 1.0 (02 September 2009)
First Release
.: To-Do List :.
Change colour of icon Plague Round to flash red and blue. (Need Ideas)
Change colour of icon Multiple Infection Round. (Optional)
.: Screenshots :.
To be added soon...
*/
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#define PLUGIN "Biohazard Icon"
#define VERSION "1.0"
#define AUTHOR "Zombie Lurker"
new iconstatus
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_PlayerPreThink,"fw_prethink");
iconstatus = get_user_msgid("StatusIcon")
}
public fw_prethink(id) {
if (zp_is_nemesis_round() & 1) {
message_begin(MSG_ONE,iconstatus,{0,0,0},id);
write_byte(1); // status (0=hide, 1=show, 2=flash)
write_string("dmg_bio"); // sprite name
write_byte(255); // red
write_byte(0); // green
write_byte(0); // blue
message_end();
} else if (zp_is_survivor_round() & 1) {
message_begin(MSG_ONE,iconstatus,{0,0,0},id);
write_byte(1); // status (0=hide, 1=show, 2=flash)
write_string("dmg_bio"); // sprite name
write_byte(0); // red
write_byte(0); // green
write_byte(255); // blue
message_end();
} else if (zp_is_swarm_round() & 1) {
message_begin(MSG_ONE,iconstatus,{0,0,0},id);
write_byte(1); // status (0=hide, 1=show, 2=flash)
write_string("dmg_bio"); // sprite name
write_byte(255); // red
write_byte(255); // green
write_byte(0); // blue
message_end();
}else if (zp_is_plague_round() & 1) {
message_begin(MSG_ONE,iconstatus,{0,0,0},id);
write_byte(1); // status (0=hide, 1=show, 2=flash)
write_string("dmg_bio"); // sprite name
write_byte(255); // red
write_byte(0); // green
write_byte(0); // blue
message_end();
} else if (zp_has_round_started() & 1) {
message_begin(MSG_ONE,iconstatus,{0,0,0},id);
write_byte(1); // status (0=hide, 1=show, 2=flash)
write_string("dmg_bio"); // sprite name
write_byte(0); // red
write_byte(255); // green
write_byte(0); // blue
message_end();
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/