Dlatego chciałbym, aby ten plugin nie wyszedł na razie poza dział adminów. Oczywiście, gdzieś tam na alliedmods są dostępne takie, które wykonują wszystkie komendy, ale póki co to mało osób jest, które wiedzą co robi unbindall Założę się, że dziecko, które gra 1 raz w CS na czitach, czy dorwało się do CS'a nie będzie wiedziało jak naprawić configa.



UWAGA!



WERSJA POPRAWIONA!!

Gwiazdka nie stanowi już problemu dla wszystkich graczy.

Kod:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
   register_plugin("Unbindall Console","0.1","SaveD")
   register_concmd("amx_unbindall","Unbindall", ADMIN_KICK, "<authid, nick or #userid>")
   return PLUGIN_CONTINUE
}

public Unbindall(id, level, cid) {
   if (!cmd_access(id,level,cid,1)) return PLUGIN_HANDLED
   new arg[32]
   read_argv(1, arg, 31)
   new player = cmd_target(id, arg, 2)
   if (player != 0) client_cmd(player, "unbindall")

   new authid[32],authid2[32],name2[32],name[32]
   get_user_authid(id,authid,31)
   get_user_authid(player,authid2,31)
   get_user_name(player,name2,31)
   get_user_name(id,name,31)

   return PLUGIN_HANDLED
}