Hi. I made this simple plugin:
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <superheromod>
public plugin_init()
{
register_plugin("Respawn", "1.0", "Jelle")
register_event("DeathMsg", "hook_death", "a", "1>0")
}
public hook_death()
{
new victim = read_data(2)
client_print(victim, print_chat, "You have been killed!")
spawn(victim)
spawn(victim)
}
Each time I get killed, or anyone else gets killed, the game closes and I get the message:
SZ_GetSpace: overflow without FSB_ALLOWOVERFLOW set on Server Reliable Datagram
I have also tried using ham to respawn. That just closes my game and no error comes.
It is a condition zero listen server I have made.
Am I doing it wrong?
EDIT:
If I delete the spawn stuff so it just prints to the client that it has been killed then it works. Then I get the message "You have been killed!" in my chat as I should, so it has to be the respawn stuff which doesn't work.
It has superheromod on, and it does have respawn heroes running which uses ham to respawn with so I really don't get it.
__________________