Komendy
fake_cmd "nick" "polecenie"
np. fake_cmd "kowalski" "drop"
Powoduje ze gracz kowalski wyrzuca bron
fake_say "nick" "wiadomość"
np. fake_say "Kowalski" "Kocham ten server! A admin jest moim idolem"
Powoduje że kowalski pisze wiadomość na czacie głównym "
Kowalski : Kocham ten server! A admin jest moim idolem
Instalacja: http://amxx.pl/viewtopic.php?t=20
#include <amxmodx>
#include <amxmisc>
new PLUGIN[]="FAKE SAY"
new AUTHOR[]="Antylol"
new VERSION[]="2.00"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("fake_say", "fake_say", ADMIN_MENU ,"<nick> <wiadomosc>")
register_concmd("fake_cmd", "fake_cmd", ADMIN_MENU ,"<nick> <komenda>")
}
public fake_say (id, level, cid)
{
if (!(get_user_flags(id)&ADMIN_MENU)) {
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_MENU)) {
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
}


Dodatki SourceMod





hp.amxx









