
http://forums.alliedmods.net/showthread.php?t=183283
Code: Select all
#include <amxmodx>#include <amxmisc>#include <cstrike> #define ADMINAS ADMIN_KICK#define SEIMININKAS ADMIN_IMMUNITY public plugin_init() { register_plugin("whatever", "whatever", "noone"); register_logevent("round_start", 2, "1=Round_Start") register_dictionary("whatever.txt"); register_clcmd("say /t", "t"); register_clcmd("say_team /t", "t"); register_clcmd("say /ct", "ct"); register_clcmd("say_team /ct", "ct"); register_clcmd("say /s", "s"); register_clcmd("say_team /s", "s");} public round_start(id) { new players[32], pnum, pid; get_players(players, pnum, "a"); for(new i; i < pnum; i++) { pid = players[i]; if(is_user_alive(pid) && get_user_flags(pid) & ADMINAS) client_print(0, print_chat, "%L", LANG_PLAYER, "INFO_ADMIN"); // noredamas stebeti pazeidejus rasyk /s if(is_user_alive(pid) && get_user_flags(pid) & SEIMININKAS) client_print(0, print_chat, "%L", LANG_PLAYER, "INFO_SEIMINKAS"); // //Noredamas pakeisti komanda naudokis /ct jei nori grysti i CT /t jei nori grytsi i T naudokis /s jei vel nori tapti ziurovu }} public t(id){ if(get_user_flags(id) & SEIMININKAS) return; if(cs_get_user_team(id) == CS_TEAM_T) { client_print(id, print_chat, "%L", LANG_PLAYER, "JAU_ESI_T"); // tu jau esi t return; } if(is_user_alive(id)) user_kill(id); cs_set_user_team(id, CS_TEAM_T);}public ct(id) { if(!(get_user_flags(id) & SEIMININKAS)) return; if(cs_get_user_team(id) == CS_TEAM_CT) { client_print(id, print_chat, "%L", LANG_PLAYER, "JAU_ESI_CT"); // tu jau esi ct return; } if(is_user_alive(id)) user_kill(id); cs_set_user_team(id, CS_TEAM_CT);} public s(id){ if(!is_user_alive(id)) return; if(get_user_flags(id) & ADMINAS) { if(is_user_alive(id)) user_kill(id); cs_set_user_team(id, CS_TEAM_SPECTATOR); client_print(id, print_chat, "%L", LANG_PLAYER, "INFO"); //Noredamas pakeisti komanda naudokis /ct jei nori grysti i CT /t jei nori grytsi i T naudokis /s jei vel nori tapti ziurovu }}
Users browsing this forum: Google [Bot] and 2 guests