CSHOT.PL - Pluginy amxx , plugins amxx , server game counter strike , serwery gier , forum
Fake_command - Printable Version

+- CSHOT.PL - Pluginy amxx , plugins amxx , server game counter strike , serwery gier , forum (https://cshot.pl)
+-- Forum: Counter-Strike (https://cshot.pl/forumdisplay.php?fid=54)
+--- Forum: Counter-Strike 1.6 (https://cshot.pl/forumdisplay.php?fid=55)
+---- Forum: PLUGINY (https://cshot.pl/forumdisplay.php?fid=62)
+---- Thread: Fake_command (/showthread.php?tid=2103)



Fake_command - Poster - 09-18-2025

[TITLE] Fake_command
[URL] https://amxx.pl/topic/2499-fake-command/


Plugin za pomaca którego można wykonać na graczu wszystkie komendy jakie są
dostępne w kliencie CS'a

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
}



[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
[Image: excl.gif]
Załączone pliki

* [url=https://amxx.pl/index.php?app=core&module=attach&section=attach&attach_id=533 "Pobierz załącznik"][Image: sma.gif][/url] [url=https://amxx.pl/index.php?app=core&module=attach&section=attach&attach_id=533 "Pobierz załącznik"]**hp.sma**[/url] **1,36 KB** 520 Ilość pobrań
[[Image: amxx.gif]**hp.amxx**](/kompilator/plugin/533
"Pobierz plik AMXX")

* [url=https://amxx.pl/index.php?app=core&module=attach&section=attach&attach_id=534 "Pobierz załącznik"][Image: unknown.gif][/url] [url=https://amxx.pl/index.php?app=core&module=attach&section=attach&attach_id=534 "Pobierz załącznik"]**hp.amxx**[/url] **2,31 KB** 351 Ilość pobrań







Załączniki:
hp.sma