AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Scan Menu ( PLUGIN ) (https://forums.alliedmods.net/showthread.php?t=335094)

SHIFT0 11-07-2021 17:42

Scan Menu ( PLUGIN )
 
Hi guys !

I want Scan Plugin is Cheat Defender !
ACCESS ADMIN_BAN
CMD : /scan
Shows this:
1. Scan Player
2. View Player Time ( How much player scanned before ) ( 1. Player Name (%d Times =)
Scan Player = when choose a player: player will auto go to spectator with sound called " hahahaha"
And he cannot join on teams !
and chat
!g[Scan Menu] !yAdmin !yName: !gAsked !tPlayer Name !yTo !yScan.
and too will show him a motd /HowToScan
" Download WCD And from this link, then click Scan and waiting the scanning then report too,
when finish u will see CTRL + V to post link WCD just go to console type: say CTRL + V "
If the player is clean ( not cheater will show him this )
!g[Auto Scan] !tPlayer Name was !gClean, Scan Report: link of report scan
if the player leave the sv
will show him
!g[Auto Scan] !tPlayer Name !yWas !gBanned !tleft !twithout !tscan.

If when the player clean he can join teams

PLEASE SOME ONE make this ?

Supremache 11-07-2021 20:48

Re: Scan Menu ( PLUGIN )
 
Search !!

SHIFT0 11-08-2021 06:01

Re: Scan Menu ( PLUGIN )
 
Quote:

Originally Posted by Supremache (Post 2762800)
Search !!

bro not found
u think what i need in google ?
no bro if i found it i don't post bro
try on it iknow u are ...

Begineer Programmer 11-08-2021 11:45

Re: Scan Menu ( PLUGIN )
 
Quote:

Originally Posted by SHIFT0 (Post 2762786)
Hi guys !

I want Scan Plugin is Cheat Defender !
ACCESS ADMIN_BAN
CMD : /scan
Shows this:
1. Scan Player
2. View Player Time ( How much player scanned before ) ( 1. Player Name (%d Times =)
Scan Player = when choose a player: player will auto go to spectator with sound called " hahahaha"
And he cannot join on teams !
and chat
!g[Scan Menu] !yAdmin !yName: !gAsked !tPlayer Name !yTo !yScan.
and too will show him a motd /HowToScan
" Download WCD And from this link, then click Scan and waiting the scanning then report too,
when finish u will see CTRL + V to post link WCD just go to console type: say CTRL + V "
If the player is clean ( not cheater will show him this )
!g[Auto Scan] !tPlayer Name was !gClean, Scan Report: link of report scan
if the player leave the sv
will show him
!g[Auto Scan] !tPlayer Name !yWas !gBanned !tleft !twithout !tscan.

If when the player clean he can join teams

PLEASE SOME ONE make this ?

Nice Idea Bro !!!

yRemootz 11-08-2021 12:01

Re: Scan Menu ( PLUGIN )
 
You want something like it ?
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>

#pragma tabsize 0

new boolhascan[33],target[33],targetIP[32],targetNAME[32],adminNAME[32]
new const 
TAG[] = "[WarGods]"

new gCvarMoveSpec,gCvarMinutesToGive,admin_spec,ban_time,SyncHudMessage

public plugin_init() {
    
register_plugin("WarGods Cerere""1.0""DanN");//edit by lev
    
    
register_clcmd "say""hook_say" );
    
register_clcmd "say_team""hook_say" );
    
    
gCvarMoveSpec register_cvar"wg_move_spec""1" );
    
gCvarMinutesToGive register_cvar"wg_min_to_response""10" );
    
    
admin_spec register_cvar"wg_admin_must_be_spec""0" );
    
ban_time register_cvar"wg_ban_time_minutes""0" );
    
    
SyncHudMessage=CreateHudSyncObj()
}

public 
client_connect(id)
{
    
hascan[id] = false;
    
target[id]=0
}

public 
client_disconnected(id
{
    if(
hascan[id]&&get_pcvar_num(ban_time)>=0)
    {
        
ColorChat0GREEN"%s^x03 %s^1 a parasit serverul in timp ce trebuia sa prezinte^4 WG^1 si a primit ban"TAGget_name(id));
        
server_cmd"addip %d %s;wait;writeip"get_pcvar_num(ban_time),targetIP );
    }
    
hascan[id]=false
    target
[id]=0
}

public 
hook_say id )
{
    new 
szSaid195 ],text[512]
    
read_argsszSaidsizeofszSaid ) -);
    
remove_quotesszSaid );
    
    if( 
containszSaid"/scan" ) != -)
    {
        if(!
is_user_admin(id))   return PLUGIN_HANDLED
        
        
new target32 ];
        
copytargetsizeoftarget ) -1szSaid] );
        if(
equal(target,""))
        {
            
ColorChatidGREEN"%s^x03 Folosire /scan NICK",TAG)
            return 
PLUGIN_HANDLED
        
}

        for(new 
x=1;x<=get_maxplayers();x++)
        {
            if(
hascan[x])
            {
                
ColorChatidGREEN"%s^x03 Deja se afla in curs o cerere de wg, ceruta de %s pentru %s"TAGadminNAMEtargetNAME);
                return 
PLUGIN_HANDLED
            
}
            break
        }
        
        new 
player cmd_targetidtarget);
        if(
hascan[player])
        {
            
ColorChatidGREEN"%s^x03 Jucatorului^x04 [%s]^x03 i s-a cerut deja o scanare wargods, de catre adminul ^x04[%s]."TAGtargetNAMEadminNAME);
            return 
PLUGIN_HANDLED;
        }
        
        if( 
player )
        {
            if(
get_pcvar_num(admin_spec)==1)
            {
                
ColorChat(0GREEN"%s^x03 Trebuie sa fii SPECTATOR pentru a cere WG"TAG);
                return 
PLUGIN_HANDLED
            
}
            
            new 
timer32 ]
            
get_time("%d/%m/%Y - %H:%M:%S"timer,31);
            
target[player]=id
            hascan
[player] = true;
            
adminNAME=get_name(id)
            
targetIP=get_ip(player)
            
targetNAME=get_name(player)
            
            
ColorChat(0GREEN"%s^x03 Adminul ^x04[%s] ^x03ii cere scanare Wargods lui ^x04[%s]. Data/Ora: ^x03 %s"TAGget_name(id), get_name(player), timer);
            
ColorChat(0GREEN"%s^x03 De asemenea are si el o poza cu mesajul ca ia cerut, in caz de neprezentare are dovada pentru ban."TAG);
            
ColorChat(0GREEN"%s^x03 Link download WG ^x04www.wargods.ro/wcd/download.php"TAG);
            
            if(
get_pcvar_num(gCvarMoveSpec)==1)
            {
                if(
is_user_alive(player))   user_silentkill(player)
                if(
cs_get_user_team(player)!=CS_TEAM_SPECTATOR)    cs_set_user_team(player,CS_TEAM_SPECTATOR)
            }
            
            new 
Float:Minutes = (float(get_pcvar_numgCvarMinutesToGive )) * 60.0);
            
set_taskMinutes 3.0"BanThis"id );
            
            
ColorChat(playerGREEN"%s^x03 Ai %d minut%s pentru a prezenta WG Adminului %s"TAG,get_pcvar_numgCvarMinutesToGive ),get_pcvar_numgCvarMinutesToGive )==1?"":"e",get_name(id));

            
client_cmd(player";Snapshot");
            
client_cmd(id";Snapshot");
            
            
formatex(text,charsmax(text),"%s %s Adminul %s i-a cerut o scanare WG jucatorului %s",TAG,timer,get_name(id),get_name(player))
            
write_file("addons/amxmodx/logs/wg.txt",text,-1)
        }
        else    
ColorChat(idGREEN"%s Jucatorul specificat nu exista."TAG);
        
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;
}

public 
BanThisid )
{
    new 
MenuTitle168 ];
    
formatexMenuTitlesizeofMenuTitle ), "\d|\r WG\d |\y Mertia\r %s\y ban?"targetNAME );
    new 
BanMenu menu_createMenuTitle"BanHandler" );
    
menu_additemBanMenu"\yDa""0");
    
menu_additemBanMenu"\yNu""1");
    
menu_additemBanMenu"\wIntreaba-ma mai incolo""2");
    
menu_additemBanMenu"\wMa descurc singur""3");
    
menu_displayidBanMenu );
}
public 
BanHandleridmenuitem )
{
    switch( 
item )
    {
        case 
0:
        {
            if( 
is_user_connectedid ) )    client_cmdid"amx_addban ^"%s^" %d ^"Neprezentare WG la timp^""targetIP,get_pcvar_num(ban_time) );
            else    
server_cmd"addip %d %s;wait;writeip",get_pcvar_num(ban_time), targetIP );

            
set_hudmessage02550, -1.0, -1.005.010.0 );
            
ShowSyncHudMsg0SyncHudMessage"[ADMIN] %s: l-a Banat pe %s (IP: %s)^n Motiv : Problema la WG !"adminNAMEtargetNAMEtargetIP );
            
            
hascan[target[id]]=false
            target
[id]=0
        
}
        case 
1:
        {
            
set_hudmessage02550, -1.0, -1.005.010.0 );
            
ShowSyncHudMsg0SyncHudMessage"[ADMIN] %s: l-a Crutat pe %s (IP: %s)^nMotiv : WG CURAT !"adminNAMEtargetNAMEtargetIP );

            switch(
random_num(1,2))
            {
                case 
1:    if(is_user_connected(target[id])&&cs_get_user_team(target[id])==CS_TEAM_SPECTATOR)    cs_set_user_team(target[id],CS_TEAM_T)
                case 
2:    if(is_user_connected(target[id])&&cs_get_user_team(target[id])==CS_TEAM_SPECTATOR)    cs_set_user_team(target[id],CS_TEAM_CT)
            }
            
            
hascan[id]=false
            target
[id]=0
        
}
        case 
2:    if(is_user_connected(id)&&is_user_admin(id)&&is_user_connected(target[id]))    set_task(5.0,"BanThis",id);
        case 
3:    return;
    }
}

stock get_name id ) {
    new 
name 32 ]
    if(
is_user_connected(id)&&!(is_user_hltv(id)||is_user_bot(id)))    get_user_name idname31 );
    return 
name
}
stock get_ipid ) {
    new 
ip 20 ]
    if(
is_user_connected(id)&&!(is_user_hltv(id)||is_user_bot(id)))    get_user_ip idip19,);
    return 
ip
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/ 


Begineer Programmer 11-08-2021 12:19

Re: Scan Menu ( PLUGIN )
 
Quote:

Originally Posted by yRemootz (Post 2762873)
You want something like it ?
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>

#pragma tabsize 0

new boolhascan[33],target[33],targetIP[32],targetNAME[32],adminNAME[32]
new const 
TAG[] = "[WarGods]"

new gCvarMoveSpec,gCvarMinutesToGive,admin_spec,ban_time,SyncHudMessage

public plugin_init() {
    
register_plugin("WarGods Cerere""1.0""DanN");//edit by lev
    
    
register_clcmd "say""hook_say" );
    
register_clcmd "say_team""hook_say" );
    
    
gCvarMoveSpec register_cvar"wg_move_spec""1" );
    
gCvarMinutesToGive register_cvar"wg_min_to_response""10" );
    
    
admin_spec register_cvar"wg_admin_must_be_spec""0" );
    
ban_time register_cvar"wg_ban_time_minutes""0" );
    
    
SyncHudMessage=CreateHudSyncObj()
}

public 
client_connect(id)
{
    
hascan[id] = false;
    
target[id]=0
}

public 
client_disconnected(id
{
    if(
hascan[id]&&get_pcvar_num(ban_time)>=0)
    {
        
ColorChat0GREEN"%s^x03 %s^1 a parasit serverul in timp ce trebuia sa prezinte^4 WG^1 si a primit ban"TAGget_name(id));
        
server_cmd"addip %d %s;wait;writeip"get_pcvar_num(ban_time),targetIP );
    }
    
hascan[id]=false
    target
[id]=0
}

public 
hook_say id )
{
    new 
szSaid195 ],text[512]
    
read_argsszSaidsizeofszSaid ) -);
    
remove_quotesszSaid );
    
    if( 
containszSaid"/scan" ) != -)
    {
        if(!
is_user_admin(id))   return PLUGIN_HANDLED
        
        
new target32 ];
        
copytargetsizeoftarget ) -1szSaid] );
        if(
equal(target,""))
        {
            
ColorChatidGREEN"%s^x03 Folosire /scan NICK",TAG)
            return 
PLUGIN_HANDLED
        
}

        for(new 
x=1;x<=get_maxplayers();x++)
        {
            if(
hascan[x])
            {
                
ColorChatidGREEN"%s^x03 Deja se afla in curs o cerere de wg, ceruta de %s pentru %s"TAGadminNAMEtargetNAME);
                return 
PLUGIN_HANDLED
            
}
            break
        }
        
        new 
player cmd_targetidtarget);
        if(
hascan[player])
        {
            
ColorChatidGREEN"%s^x03 Jucatorului^x04 [%s]^x03 i s-a cerut deja o scanare wargods, de catre adminul ^x04[%s]."TAGtargetNAMEadminNAME);
            return 
PLUGIN_HANDLED;
        }
        
        if( 
player )
        {
            if(
get_pcvar_num(admin_spec)==1)
            {
                
ColorChat(0GREEN"%s^x03 Trebuie sa fii SPECTATOR pentru a cere WG"TAG);
                return 
PLUGIN_HANDLED
            
}
            
            new 
timer32 ]
            
get_time("%d/%m/%Y - %H:%M:%S"timer,31);
            
target[player]=id
            hascan
[player] = true;
            
adminNAME=get_name(id)
            
targetIP=get_ip(player)
            
targetNAME=get_name(player)
            
            
ColorChat(0GREEN"%s^x03 Adminul ^x04[%s] ^x03ii cere scanare Wargods lui ^x04[%s]. Data/Ora: ^x03 %s"TAGget_name(id), get_name(player), timer);
            
ColorChat(0GREEN"%s^x03 De asemenea are si el o poza cu mesajul ca ia cerut, in caz de neprezentare are dovada pentru ban."TAG);
            
ColorChat(0GREEN"%s^x03 Link download WG ^x04www.wargods.ro/wcd/download.php"TAG);
            
            if(
get_pcvar_num(gCvarMoveSpec)==1)
            {
                if(
is_user_alive(player))   user_silentkill(player)
                if(
cs_get_user_team(player)!=CS_TEAM_SPECTATOR)    cs_set_user_team(player,CS_TEAM_SPECTATOR)
            }
            
            new 
Float:Minutes = (float(get_pcvar_numgCvarMinutesToGive )) * 60.0);
            
set_taskMinutes 3.0"BanThis"id );
            
            
ColorChat(playerGREEN"%s^x03 Ai %d minut%s pentru a prezenta WG Adminului %s"TAG,get_pcvar_numgCvarMinutesToGive ),get_pcvar_numgCvarMinutesToGive )==1?"":"e",get_name(id));

            
client_cmd(player";Snapshot");
            
client_cmd(id";Snapshot");
            
            
formatex(text,charsmax(text),"%s %s Adminul %s i-a cerut o scanare WG jucatorului %s",TAG,timer,get_name(id),get_name(player))
            
write_file("addons/amxmodx/logs/wg.txt",text,-1)
        }
        else    
ColorChat(idGREEN"%s Jucatorul specificat nu exista."TAG);
        
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;
}

public 
BanThisid )
{
    new 
MenuTitle168 ];
    
formatexMenuTitlesizeofMenuTitle ), "\d|\r WG\d |\y Mertia\r %s\y ban?"targetNAME );
    new 
BanMenu menu_createMenuTitle"BanHandler" );
    
menu_additemBanMenu"\yDa""0");
    
menu_additemBanMenu"\yNu""1");
    
menu_additemBanMenu"\wIntreaba-ma mai incolo""2");
    
menu_additemBanMenu"\wMa descurc singur""3");
    
menu_displayidBanMenu );
}
public 
BanHandleridmenuitem )
{
    switch( 
item )
    {
        case 
0:
        {
            if( 
is_user_connectedid ) )    client_cmdid"amx_addban ^"%s^" %d ^"Neprezentare WG la timp^""targetIP,get_pcvar_num(ban_time) );
            else    
server_cmd"addip %d %s;wait;writeip",get_pcvar_num(ban_time), targetIP );

            
set_hudmessage02550, -1.0, -1.005.010.0 );
            
ShowSyncHudMsg0SyncHudMessage"[ADMIN] %s: l-a Banat pe %s (IP: %s)^n Motiv : Problema la WG !"adminNAMEtargetNAMEtargetIP );
            
            
hascan[target[id]]=false
            target
[id]=0
        
}
        case 
1:
        {
            
set_hudmessage02550, -1.0, -1.005.010.0 );
            
ShowSyncHudMsg0SyncHudMessage"[ADMIN] %s: l-a Crutat pe %s (IP: %s)^nMotiv : WG CURAT !"adminNAMEtargetNAMEtargetIP );

            switch(
random_num(1,2))
            {
                case 
1:    if(is_user_connected(target[id])&&cs_get_user_team(target[id])==CS_TEAM_SPECTATOR)    cs_set_user_team(target[id],CS_TEAM_T)
                case 
2:    if(is_user_connected(target[id])&&cs_get_user_team(target[id])==CS_TEAM_SPECTATOR)    cs_set_user_team(target[id],CS_TEAM_CT)
            }
            
            
hascan[id]=false
            target
[id]=0
        
}
        case 
2:    if(is_user_connected(id)&&is_user_admin(id)&&is_user_connected(target[id]))    set_task(5.0,"BanThis",id);
        case 
3:    return;
    }
}

stock get_name id ) {
    new 
name 32 ]
    if(
is_user_connected(id)&&!(is_user_hltv(id)||is_user_bot(id)))    get_user_name idname31 );
    return 
name
}
stock get_ipid ) {
    new 
ip 20 ]
    if(
is_user_connected(id)&&!(is_user_hltv(id)||is_user_bot(id)))    get_user_ip idip19,);
    return 
ip
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/ 


can you please translate into english !!!

yRemootz 11-08-2021 13:02

Re: Scan Menu ( PLUGIN )
 
Quote:

Originally Posted by Begineer Programmer (Post 2762876)
can you please translate into english !!!

You want I compile also ?

I'll send for you the steps for translate it.

0. Step Stop being lazy and follow the steps.
1. Step Go to https://translate.google.com/.
2. Step Put the sentence like you want translate (obviously to English)
3. Step Have fun with the translation, you're lazy ? Go to step 0.

SHIFT0 11-08-2021 13:42

Re: Scan Menu ( PLUGIN )
 
Nope
this not like what i want

yRemootz 11-08-2021 13:55

Re: Scan Menu ( PLUGIN )
 
Quote:

Originally Posted by Supremache (Post 2762800)
Search !!

Search...
You need search what you want before open a thread asking to plugins.

SHIFT0 11-08-2021 14:48

Re: Scan Menu ( PLUGIN )
 
Bro i said
when i shared a post means not found !
how i found it in google and share a post too ?
Nope not found bro
what i want never u can find it in GOOGLE


All times are GMT -4. The time now is 16:46.

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