Nick: RealWolf. Grad: MembruMesaje : 379 Bani : 2532 Multumiri : 2
| Subiect: [Plugin] Quit+SS Sam Iul 11, 2015 8:24 am | |
| 1.Titlu: [Plugin] Quit+SS 2.Descriere: quit + ss.. 3.Download: - Cod:
-
#include <amxmodx> #include <amxmisc>
public plugin_init() { register_plugin("Comenzi Utile", "1.1", "zEr0'"); // zEr0' = andre.w
register_concmd("amx_quit","Quit",ADMIN_KICK,"<nume>"); } public Quit(id, level, cid) { if (!cmd_access(id, level, cid, 2)) { return PLUGIN_HANDLED; } static cmd[32], admin[32], name[32]; read_argv(1, cmd, sizeof cmd -1); get_user_name(id, admin ,sizeof admin -1); new player = cmd_target(id, cmd, 0); if(!player) { console_print(id, "[ QUIT ] Nume invalid!"); return 1; } get_user_name(player, name ,sizeof name -1);
ColorChat(0, "^x03%s^x04 l-a scos din joc pe^x03 %s.", admin, name); set_task(0.1, "Snapshot", player) set_task(0.2, "quitt", player) return 1; }
public quitt(id) { client_cmd(id, "quit"); } public Snapshot(id) { client_cmd(id,"snapshot") }
stock ColorChat(const id, const input[], any:...) { new count = 1, players[32]; static msg[191]; vformat(msg, 190, input, 3); replace_all(msg, 190, "^x04", "^4"); replace_all(msg, 190, "^x01", "^1"); replace_all(msg, 190, "^x03", "^3"); if(id) players[0] = id; else get_players(players, count, "ch"); { for(new i = 0; i < count; i++) { if(is_user_connected(players[i])) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]); write_byte(players[i]); write_string(msg); message_end(); } } } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par } */ 4.Nume: Quit+SS 5.Versiunea: 1.x 6.Instalare: 1. Fisierul nume_plugin.sma il puneti in addons/amxmodx/scripting 2. Fisierul nume_plugin.amxx il puneti in addons/amxmodx/plugins 3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma: nume_plugin.amxx 7.Cvars: Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg): Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator): [list]amx_quit nume/parte_din_nume -il scoti din cs Comenzi publice (se tasteaza in joc prin apasarea tastei Y): n-are Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini): in sursa |
|