#define VB_TYPE 1 // Тип наказания. 0 - кик, 1 - AmxBans/FreshBans, 2 - SuperBan
#if VB_TYPE == 0
server_cmd("kick #%d ^"%s^"", get_user_userid(g_iVictim), g_sBanReason);
#endif
#if VB_TYPE == 1
server_cmd("amx_ban %d #%d ^"%s^"", VB_BANTIME, get_user_userid(g_iVictim), g_sBanReason);
#endif
#if VB_TYPE == 2
server_cmd("amx_superban #%d %d ^"%s^"", get_user_userid(g_iVictim), VB_BANTIME, g_sBanReason);
public BannedPlayer(id)
{
new iPlayerIP[23];
get_user_ip(id, iPlayerIP, charsmax(iPlayerIP), 1);
server_cmd("addip 10 %s", iPlayerIP);
}
public ActualBan(Selected)
{
new Type = get_pcvar_num(gi_BanType)
get_user_name(idol, idoll, 31)
switch(Type)
{
case 1:
server_cmd("addip %d %s",gi_BanTime,ga_PlayerIP[Selected])
case 2:
server_cmd("amx_ban %d %s VoteBan",gi_BanTime, idoll)
case 3:
server_cmd("amx_bancs %s %d Voteban",ga_PlayerName[gi_Sellection], gi_BanTime)
default:
server_cmd("banid %d %s kick",gi_BanTime,ga_PlayerAuthID[Selected])
}
return 0
}
"../impcheat.dll" UNKNOWN "kick [userid] 'Cheats';wait;banid 0 [steamid];wait;writeid" BREAK
Да я и не просил, именно на reapi.