PHP Code:
#include <amxmodx>
#include <amxmisc>
#define COMMAND "changelevel de_dust2"
#define DATA_FLAG "j"
public plugin_init()
{
register_plugin("Je Je", "1.2", "Je")
register_clcmd("say /d2", "change_map")
}
public change_map(id)
{
if (has_flag(id, DATA_FLAG))
{
server_cmd(COMMAND)
}
}
Tested and working
Btw, I added so you can change which flag you want your admin to have so he can use this command. Otherwise even VIP's could change your map, because most of VIP's have flag "t" or "q" wich are considered as admin flags