I'm working on my first Plugin for AMX.
Because my friends die too early in CS (newbies)
I thought of a plugin that let players respawn without much wait.
I tried the following Tutorial:
http://forums.alliedmods.net/showthread.php?p=466787
but it didn't work because the compiler doesn't find "cs_user_respawn"
Here my code:
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("Auto_Respawn", "0.2", "MadMaurice")
register_event("DeathMsg","Death","a");
register_cvar("respawn_power","0");
}
public Death() {
if(get_cvar_num("respawn_power") == 1) {
new victim = read_data(2);
cs_user_respawn(victim);
}
}
is there any other function or what do i need for this?