AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Trick the cheaters (https://forums.alliedmods.net/showthread.php?t=3851)

vinnybcfc 07-16-2004 18:00

Trick the cheaters
 
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 :)^"")
                }
        }
}


sanaell 07-16-2004 18:50

if the cheat is detected the guy can t enter.... BANNED for 1 ( not 3 ) year

vinnybcfc 07-16-2004 19:04

lol this is a fake script to scare noob cheaters but I need help in getting it working

sanaell 07-16-2004 20:50

Quote:

Originally Posted by vinnybcfc
lol this is a fake script to scare noob cheaters but I need help in getting it working

i see that on a server , i LMAO and connect on other server ( fake script take real CPU :) )

Ingram 07-17-2004 05:55

lol i wouldn't, i'd have nothing to worry about anyway

Code:

key = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
can't u press any key then?? aren't u just looking for 1 and 2?

vinnybcfc 07-17-2004 11:04

The problems I have is that the message doesnt come up at all. In the compiler (local not web one) it says a warning about MenuNameChoice saying that there isnt a value or something like that. Also I dont know where to put the time bit in to kick them after 10 seconds of not answering the question


All times are GMT -4. The time now is 14:54.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.