This code only job in the new round.
How could I use this code using a command to revive any player?
This code only works for me when new round, but not when I use for example hookea pev_deadflag ...
I would like to know how hookear to revive at any time of the round ...
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <orpheu>
#include <orpheu_stocks>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "colossus"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// Add your code here...
OrpheuRegisterHook(OrpheuGetFunctionFromClass("player","Spawn","CBasePlayer"), "CBasePlayer_Spawn")
}
public CBasePlayer_Spawn(id)
{
}