Ето кода:
Код за потвърждение: Избери целия код
#include <amxmodx>
public plugin_init()
{
register_plugin("Kill 100 change map", "1.0", "Somebody");
register_event("DeathMsg", "deathmsg", "a", "1>0");
}
public deathmsg()
{
new id = read_data(1);
if(is_user_connected(id) && get_user_frags(id) >= 100)
{
new nextmap[32];
get_cvar_string("amx_nextmap", nextmap, charsmax(nextmap));
server_cmd("changelevel %s", nextmap);
}
}