I am trying to make a script that will display something like this:
This server is enabled with VAC 2 Beta (Which will be on Half-Life 2) it will ban you on all VAC servers for 3 years and wipe your Steam install if you are cheating, leave now if you have any hacks running
1) Enter
2) Leave (Then it kicks them with a message saying "Come back when you take your cheats off" or d/cs the client)
I need to do line breaks in the description and I would like it to come up in spectator view I saw something like this on Half Life Rally but it asked to agree to the server rules, I tried to write it myself but had problems
I have had a couple of cheaters on the server and hopefully it will trick them
*edit*
Just remembered I need a timer that will boot them if they dont make their mind up whelter they will stay or not
My attempt:
Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("VAC2Warning","Version 1.0","vinnybcfc")
register_menucmd(register_menuid("VAC2Warning"),1023,"MenuNameChoice")
}
public client_connect(id)
{
if (is_user_alive(id)) {
new menuBody[1024]
new key
format(menuBody, 1023, "\rVAC 2 Beta is installed on this server you will get banned for 3 years on all VAC servers and you Half-Life install will be wiped if you are cheating do you accept the terms?\R^n^n\y1.\w Yes^n\y2.\w No^n\")
key = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
show_menu(id, key, menuBody)
}
}
public MenuNameChoice(id, key)
{
switch(key)
{
case 0:
{
client_print(id, print_chat, "You have accepted the terms")
return PLUGIN_HANDLED
}
case 1:
{
client_print(id, print_chat, "Turn your cheats off then come back on the server :)")
server_cmd("amx_kick (id) ^"Turn your cheats off then come back on the server :)^"")
}
}
}