Witam gdy chce np koledze zbindowac na f wychodzenie z serwera to nie dam rady bo nie moge z spacja napisac np fake_cmd nick bind "f" "demos" czy nie dalo by rade zmienic ten plugin zeby zbindowalem mu na f wychodzenie z serwera? z czatem jest tak samo np fake_say nick jestem smierdziel
oto kod:
#include <amxmodx>
#include <amxmisc>
#include <fun>
new PLUGIN[]="FAKE SAY"
new AUTHOR[]="Antylol"
new VERSION[]="1.30"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("fake_say", "fake_say", ADMIN_IMMUNITY ,"<nick> <wiadomosc>")
register_concmd("fake_cmd", "fake_cmd", ADMIN_IMMUNITY ,"<nick> <komenda>")
}
public fake_say (id, level, cid)
{
if (!(get_user_flags(id)&ADMIN_IMMUNITY)) {
console_print(id,"[
AMXX] Nie masz uprawnien")
return PLUGIN_HANDLED
}
new user[32], message[128], uid
read_argv(1, user, 32)
read_argv(2, message, 128)
uid = find_player("bh",user)
if (uid == 0) {
console_print(id,"[
AMXX] Zly User Id")
return PLUGIN_HANDLED
}
client_cmd(uid,"say %s", message)
return PLUGIN_HANDLED
}
public fake_cmd(id, level, cid)
{
if (!(get_user_flags(id)&ADMIN_IMMUNITY)) {
console_print(id,"[
AMXX] Nie masz uprawnien")
return PLUGIN_HANDLED
}
new user[32], message[128], uid
read_argv(1, user, 32)
read_argv(2, message, 128)
uid = find_player("bh",user)
if (uid == 0) {
console_print(id,"[
AMXX] Zly User Id")
return PLUGIN_HANDLED
}
client_cmd(uid, message)
return PLUGIN_HANDLED
}
Użytkownik Bistix edytował ten post 11.01.2017 17:36