Raised This Month: $ Target: $400
 0% 

[Translation and Remove ColorChat]: Add clinet_print_color


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
counterstrike1.6
Member
Join Date: Oct 2020
Old 08-16-2022 , 11:05   [Translation and Remove ColorChat]: Add clinet_print_color
Reply With Quote #1

Hi All !!!
I need translation of this code in Language: English [Remove ColorChat and add client_print_color]
PHP Code:
#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

counterstrike1.6 is offline
Snake.
Senior Member
Join Date: Jul 2017
Old 08-17-2022 , 09:35   Re: [Translation and Remove ColorChat]: Add clinet_print_color
Reply With Quote #2

Remove #include <colorchat>, change all "ColorChat( 0, GREEN," to "client_print_color( 0, print_chat," and use google translate to translate it to English, that's it.
Snake. is offline
Send a message via Skype™ to Snake.
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:40.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode