Solved. Here's the solution
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <fun>
#define PLUGIN "Stay Dead"
#define VERSION "1.0"
#define AUTHOR "RFP"
public plugin_init(){
register_plugin(PLUGIN,VERSION,AUTHOR)
register_event("ResetHUD","block_spawn","be","1=1")
}
public block_spawn(id)
{
set_pev(id, pev_health, 0.0);
set_pev(id, pev_deadflag, DEAD_DEAD);
set_msg_block(g_msgid_ClCorpse, BLOCK_ONCE)
//client_print(id, print_chat, "[AMXX] You are not allowed to respawn!")
}
Here "HAM" is not needed because i tested newround , resethud and ham spawn , in which order they go and here's the order:
1.NewRound
2.ResetHUD
3.HamSpawn
I think ham_spawn didn't work because it's called after the player's spawn. And here we go. Resethud works nice.
Note: Here's also a small bug. After dead flags are set the player doesnt respawn (he's remains dead spectator in his team) but a floating model is respawned. I want to fix that. I'll find and come with an edit but if someone knows how to delete that floating model i'll accept ur help.
EDIT: FOUND how to remove that flying model . Code UPDATED!