Участник
Пользователь
- Сообщения
- 366
- Реакции
- 5
- Предупреждения
- 5
- Помог
- 1 раз(а)
Неверный раздел форума
I want to update reapi version M button is blocked
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>
#include <fun>
#include <csx>
#include <ColorChat>
#include <hamsandwich>
#include <csstats>
new blockteam
public plugin_init()
{
blockteam = register_cvar("cl_teamblock","0")
register_clcmd("chooseteam ", "teamblock")
register_clcmd("jointeam 1", "teamblock")
register_clcmd("jointeam 2", "teamblock")
register_clcmd("jointeam 3", "teamblock")
register_clcmd("jointeam 4", "teamblock")
register_clcmd("jointeam 5", "teamblock")
register_concmd("say /block","enable")
register_concmd("say /unblock","disable")
}
public teamblock(id)
{
if (get_pcvar_num(blockteam))
{
ColorChat(id, RED, "^x01[^x03teamblock^x01]^x04M button is blocked because it is Clanwar on the server")
return PLUGIN_HANDLED;
}
if (!get_pcvar_num(blockteam))
return PLUGIN_CONTINUE;
return PLUGIN_HANDLED;
}
public Menable(id){
if( get_user_flags(id) & ADMIN_BAN ){
server_cmd("cl_teamblock 1")
ColorChat(0, RED, "^x01[^x03teamblock^x01]^x01 M button is blocked")
}else{
ColorChat(id, RED, "^x01[^x03teamblock^x01]^x01 You are not authorized to use this command")
}
}
public Mdisable(id){
if( get_user_flags(id) & ADMIN_BAN ){
server_cmd("cl_teamblock 0")
ColorChat(0, RED, "^x01[^x03teamblock^x01]^x01 M button is activated")
}else{
ColorChat(id, RED, "^x01[^x03teamblock^x01]^x01 You are not authorized to use this command")
}
}
#include <amxmisc>
#include <cstrike>
#include <colorchat>
#include <fun>
#include <csx>
#include <ColorChat>
#include <hamsandwich>
#include <csstats>
new blockteam
public plugin_init()
{
blockteam = register_cvar("cl_teamblock","0")
register_clcmd("chooseteam ", "teamblock")
register_clcmd("jointeam 1", "teamblock")
register_clcmd("jointeam 2", "teamblock")
register_clcmd("jointeam 3", "teamblock")
register_clcmd("jointeam 4", "teamblock")
register_clcmd("jointeam 5", "teamblock")
register_concmd("say /block","enable")
register_concmd("say /unblock","disable")
}
public teamblock(id)
{
if (get_pcvar_num(blockteam))
{
ColorChat(id, RED, "^x01[^x03teamblock^x01]^x04M button is blocked because it is Clanwar on the server")
return PLUGIN_HANDLED;
}
if (!get_pcvar_num(blockteam))
return PLUGIN_CONTINUE;
return PLUGIN_HANDLED;
}
public Menable(id){
if( get_user_flags(id) & ADMIN_BAN ){
server_cmd("cl_teamblock 1")
ColorChat(0, RED, "^x01[^x03teamblock^x01]^x01 M button is blocked")
}else{
ColorChat(id, RED, "^x01[^x03teamblock^x01]^x01 You are not authorized to use this command")
}
}
public Mdisable(id){
if( get_user_flags(id) & ADMIN_BAN ){
server_cmd("cl_teamblock 0")
ColorChat(0, RED, "^x01[^x03teamblock^x01]^x01 M button is activated")
}else{
ColorChat(id, RED, "^x01[^x03teamblock^x01]^x01 You are not authorized to use this command")
}
}