How can i show the sprites to the killer?
Im not sure if its the thing with write_byte or not, and if its that can someone show me an example?
HTML Code:
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "Kill Cards"
#define VERSION "1.0"
#define AUTHOR "tedaimlocks"
new iKills[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
RegisterHam(Ham_Killed, "player", "PlayerKilled");
register_logevent("Logevent_RoundStart", 2, "1=Round_Start");
}
public PlayerKilled(iVictim, iAttacker) {
if (is_user_connected(iAttacker) && iAttacker != iVictim) {
iKills[iAttacker]++;
if (iKills[iAttacker] == 1) {
client_print(iAttacker, print_chat, "You now have %d kill.", iKills[iAttacker]);
// Show 1st kill card sprite
}
else if (iKills[iAttacker] == 2) {
client_print(iAttacker, print_chat, "You now have %d kills.", iKills[iAttacker]);
// Show 2nd kill card sprite
}
else if (iKills[iAttacker] == 3) {
client_print(iAttacker, print_chat, "You now have %d kills.", iKills[iAttacker]);
// Show 3rd kill card sprite
}
else if (iKills[iAttacker] == 4) {
client_print(iAttacker, print_chat, "You now have %d kills.", iKills[iAttacker]);
// Show 4th kill card sprite
}
else if (iKills[iAttacker] == 5) {
client_print(iAttacker, print_chat, "You now have %d kills.", iKills[iAttacker]);
// Show 5th kill card sprite
}
else if (iKills[iAttacker] == 6) {
client_print(iAttacker, print_chat, "You now have %d kills.", iKills[iAttacker]);
// Show 6th kill card sprite
}
else if (iKills[iAttacker] == 7) {
client_print(iAttacker, print_chat, "You now have %d kills.", iKills[iAttacker]);
// Show 7th kill card sprite
}
else if (iKills[iAttacker] == 8) {
client_print(iAttacker, print_chat, "You now have %d kills.", iKills[iAttacker]);
// Show 8th kill card sprite
}
else if (iKills[iAttacker] == 9) {
client_print(iAttacker, print_chat, "You now have %d kills.", iKills[iAttacker]);
// Show 9th kill card sprite
}
else if (iKills[iAttacker] >= 10) {
client_print(iAttacker, print_chat, "You now have %d kills.", iKills[iAttacker]);
// Show 10th kill card sprite
}
}
}
public Logevent_RoundStart() {
for(new i = 1; i <= get_maxplayers(); i++) {
iKills[i] = 0;
}
}
public client_disconnect(id) {
iKills[id] = 0;
}
public client_putinserver(id) {
iKills[id] = 0;
}