User
Pass
2FA
 
 

translation fail

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Tutorials
Author Message1438
art.work
[Banned user]


Banned


Status: Offline
(since 30-03-2011 18:37)
Joined: 24 Mar 2010
Posts: 2930, Topics: 150
Location: HI5 CURCANILOR

Reputation: 37
Votes: 88

 
Post Posted: 14-06-2010, 12:15:24 | Translate post to: ... (Click for more languages)

ok deci am tradus cate ceva prin data/lang din en in ro si nu mi le ia la niciun plugin . care e problema?


0 0
  
Back to top
View user's profile Send private message
revox

[Psychotic]



Status: Offline
(since 13-03-2023 07:43)
Joined: 11 Mar 2008
Posts: 9596, Topics: 492
Location: Romania

Reputation: 2911.8
Votes: 328

Post Posted: 14-06-2010, 12:23:01 | Translate post to: ... (Click for more languages)

probabil sunt si-n plugin -
sau posteaza pluginu (sursa) si posteaza si txt

0 0
  
Back to top
View user's profile Send private message
art.work
[Banned user]


Banned


Status: Offline
(since 30-03-2011 18:37)
Joined: 24 Mar 2010
Posts: 2930, Topics: 150
Location: HI5 CURCANILOR

Reputation: 37
Votes: 88

 
Post Posted: 14-06-2010, 12:29:36 | Translate post to: ... (Click for more languages)

faza e ca la asta imi da eroare

[USER] ML_NOTFOUND: MSG_HAS_CONNECTED


Code:
/* Author: Lure.d
   Visit: http://lured.tk
   Also check - http://amxmodx.org | forums.alliedmods.net
   Thanks to all people that use this plugin
   Thread: http://forums.alliedmods.net/showthread.php?t=114524
   
   -Changelog-
   [+] 1.3 added custom tags
   -amx_cm_tag: defines if a custom tag is shown
   -amx_cm_customtag: defines the tag(max len. 14)
   [+] 1.2
   a] -amx_cm_hidebots: does not show bot messages or not
   b] -no more colorchat include! woohoo!
   c] -game-monitor support :P
   [+] 1.1 Optimized code
   -amx_cm_onlywelcome: shows only welcome message or not.
   [+] 1.0 Initial release
*/

//includes
#include <amxmodx> // includes main amxx. its a MUST

//plugin register definitions
#define PLUGIN "Connection messages"
#define VERSION "1.2"
#define AUTHOR "Lure.d"

//plugin custom definitions and cvars
#define CM_BOT "[BOT]"
#define CM_ADMIN "[ADMIN]"
#define CM_NORMAL "[USER]"
new cvar_plugin_enabled;
new cvar_plugin_only_welcome;
new cvar_plugin_hidebots;
new cvar_plugin_tag;
new cvar_plugin_customtag;

enum Color
{
   NORMAL = 1, // clients scr_concolor cvar color
   GREEN, // Green Color
   TEAM_COLOR, // Red, grey, blue
   GREY, // grey
   RED, // Red
   BLUE, // Blue
}

public plugin_init() { //main plugin function
   register_plugin(PLUGIN, VERSION, AUTHOR); //registering plugin
   register_dictionary("connect_messages.txt"); //registering dictionary
   
   cvar_plugin_enabled = register_cvar("amx_cm_enabled", "1", ADMIN_CVAR); //cvar 1
   cvar_plugin_only_welcome = register_cvar("amx_cm_onlywelcome", "0", ADMIN_CVAR); //cvar 2
   cvar_plugin_hidebots = register_cvar("amx_cm_hidebots", "0", ADMIN_CVAR); //cvar 3
   cvar_plugin_tag = register_cvar("amx_cm_tag", "0", ADMIN_CVAR); //cvar 4
   cvar_plugin_customtag = register_cvar("amx_cm_customtag", "[AMXX]", ADMIN_CVAR); //cvar 4
   
   // Gamemonitor info
   static szCvar[30];
   formatex(szCvar, charsmax(szCvar), "v%s by Lure.d", VERSION);
   register_cvar("amx_cm_version", szCvar, FCVAR_SERVER|FCVAR_SPONLY);
}

public client_putinserver(id) { //called when player joins server
   if (get_pcvar_num(cvar_plugin_enabled) > 0) { //check if plugin is enabled
      set_task(5.0, "welcome", id); // 5 sec delay
      
      static name[30] //defining name length
      get_user_name(id, name, 29); //getting name and storing into name variable
      
      if (get_pcvar_num(cvar_plugin_only_welcome) < 1) { //check if its only welcome
         if (is_user_bot(id) == 1) { //check if user is bot
            if (get_pcvar_num(cvar_plugin_hidebots) < 1) { //check if admin wants to hide bots
               if (get_pcvar_num(cvar_plugin_tag) > 0) {
                  static szTag[15];
                  get_pcvar_string(cvar_plugin_customtag, szTag, 14);
                  ColorChat(0, TEAM_COLOR, "^x04%s ^x03%L", szTag, LANG_PLAYER, "MSG_HAS_CONNECTED", name);
                  //print message
               } else {
                  ColorChat(0, TEAM_COLOR, "^x04%s ^x03%L", CM_BOT, LANG_PLAYER, "MSG_HAS_CONNECTED", name);
                  //print message
               }
            }
         } else { //well hes not bot. Check if admin/not
            if (get_user_flags(id) & ADMIN_CHAT) { //check if user has a minimum of admin
               if (get_pcvar_num(cvar_plugin_tag) > 0) {
                  static szTag[15];
                  get_pcvar_string(cvar_plugin_customtag, szTag, 14);
                  ColorChat(0, TEAM_COLOR, "^x04%s ^x03%L", szTag, LANG_PLAYER, "MSG_HAS_CONNECTED", name);
               } else {
                  ColorChat(0, TEAM_COLOR, "^x04%s ^x03%L", CM_ADMIN, LANG_PLAYER, "MSG_HAS_CONNECTED", name);
               }
               //print message
            } else { //everythings clear - simple user.
               if (get_pcvar_num(cvar_plugin_tag) > 0) {
                  static szTag[15];
                  get_pcvar_string(cvar_plugin_customtag, szTag, 14);
                  ColorChat(0, TEAM_COLOR, "^x04%s ^x03%L", szTag, LANG_PLAYER, "MSG_HAS_CONNECTED", name);
               } else {
                  ColorChat(0, TEAM_COLOR, "^x04%s ^x03%L", CM_NORMAL, LANG_PLAYER, "MSG_HAS_CONNECTED", name);
                  //print message
               }
            }
         }
      }
   }
}

public client_disconnect(id) { //called when player leaves server
   if (get_pcvar_num(cvar_plugin_enabled) > 0) { //check if plugin is enabled
      
      static name[30] //defining name length
      get_user_name(id, name, 29); //getting name and storing into name variable
      
      if (get_pcvar_num(cvar_plugin_only_welcome) < 1) { //check if its only welcome
         if (is_user_bot(id) == 1) { //check if user is bot
            if (get_pcvar_num(cvar_plugin_hidebots) < 1) { //check if admin wants to hide bots
               if (get_pcvar_num(cvar_plugin_tag) > 0) {
                  static szTag[15];
                  get_pcvar_string(cvar_plugin_customtag, szTag, 14);
                  ColorChat(0, TEAM_COLOR, "^x04%s ^x03%L", szTag, LANG_PLAYER, "MSG_HAS_LEFT", name);
                  //print message
               } else {
                  ColorChat(0, TEAM_COLOR, "^x04%s ^x03%L", CM_BOT, LANG_PLAYER, "MSG_HAS_LEFT", name);
                  //print message
               }
            }
         } else { //well hes not bot. Check if admin/not
            if (get_user_flags(id) & ADMIN_CHAT) { //check if user has a minimum of admin
               if (get_pcvar_num(cvar_plugin_tag) > 0) {
                  static szTag[15];
                  get_pcvar_string(cvar_plugin_customtag, szTag, 14);
                  ColorChat(0, TEAM_COLOR, "^x04%s ^x03%L", szTag, LANG_PLAYER, "MSG_HAS_LEFT", name);
               } else {
                  ColorChat(0, TEAM_COLOR, "^x04%s ^x03%L", CM_ADMIN, LANG_PLAYER, "MSG_HAS_LEFT", name);
               }
               //print message
            } else { //everythings clear - simple user.
               if (get_pcvar_num(cvar_plugin_tag) > 0) {
                  static szTag[15];
                  get_pcvar_string(cvar_plugin_customtag, szTag, 14);
                  ColorChat(0, TEAM_COLOR, "^x04%s ^x03%L", szTag, LANG_PLAYER, "MSG_HAS_LEFT", name);
               } else {
                  ColorChat(0, TEAM_COLOR, "^x04%s ^x03%L", CM_NORMAL, LANG_PLAYER, "MSG_HAS_LEFT", name);
                  //print message
               }
            }
         }
      }
   }
}
public welcome(id) { //custom function after 5 sec.
   if (get_pcvar_num(cvar_plugin_enabled) > 0) {//check if plugin is enabled
      static name[30]; //defining name length
      get_user_name(id, name, 29); //getting name and storing into name variable
      
      
      if (is_user_bot(id) == 1) { //check if user is bot
         if (get_pcvar_num(cvar_plugin_hidebots) < 1) { //check if admin wants to hide bots
            if (get_pcvar_num(cvar_plugin_tag) > 0) {
               static szTag[15];
               get_pcvar_string(cvar_plugin_customtag, szTag, 14);
               ColorChat(id, TEAM_COLOR, "^x04%s ^x03%L", szTag, LANG_PLAYER, "MSG_WELCOME", name);
            } else {
               ColorChat(id, TEAM_COLOR, "^x04%s ^x03%L", CM_BOT, LANG_PLAYER, "MSG_WELCOME", name);
               //print message
            }
         }
      } else { //well hes not bot. Check if admin/not
         if (get_user_flags(id) & ADMIN_CHAT) { //check if user has a minimum of admin
            if (get_pcvar_num(cvar_plugin_tag) > 0) {
               static szTag[15];
               get_pcvar_string(cvar_plugin_customtag, szTag, 14);
               ColorChat(id, TEAM_COLOR, "^x04%s ^x03%L", szTag, LANG_PLAYER, "MSG_WELCOME", name);
            } else {
               ColorChat(id, TEAM_COLOR, "^x04%s ^x03%L", CM_ADMIN, LANG_PLAYER, "MSG_WELCOME", name);
               //print message
            }
         } else { //everythings clear - simple user.
            if (get_pcvar_num(cvar_plugin_tag) > 0) {
               static szTag[15];
               get_pcvar_string(cvar_plugin_customtag, szTag, 14);
               ColorChat(id, TEAM_COLOR, "^x04%s ^x03%L", szTag, LANG_PLAYER, "MSG_WELCOME", name);
            } else {
               ColorChat(id, TEAM_COLOR, "^x04%s ^x03%L", CM_NORMAL, LANG_PLAYER, "MSG_WELCOME", name);
               //print message
            }
         }
      }
   }
}

public ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
   static SayText;

   if(!SayText)
      SayText = get_user_msgid("SayText");

   static message[256];

   switch(type)
   {
      case GREEN: // Green
      {
         message[0] = 0x04;
      }
      case TEAM_COLOR: // Team Color. Ie. Red (Terrorist) or blue (Counter-Terrorist).
      {
         message[0] = 0x03;
      }
      // Will allow it to work propertly even though they might of send an invalid Color Type.
      // Will default to Yellow if it is.
      default: // Yellow.
      {

         message[0] = 0x01;
      }
   }

   vformat(message[1], 251, msg, 4);

   // Make sure message is not longer than 192 character. Will crash the server.
   message[192] = '^0';

   if(id)
   {
      if(is_user_connected(id))
      {
         message_begin(MSG_ONE, SayText, {0, 0, 0}, id);
         write_byte(id);
         write_string(message);
         message_end();
      }
   } else {
      static players[32]; new count, index;
      get_players(players, count);

      for(new i = 0; i < count; i++)
      {
         index = players[i];

         message_begin(MSG_ONE, SayText, {0, 0, 0}, index);
         write_byte(index);
         write_string(message);
         message_end();

      }
   }
}


si lang

{\rtf1\ansi\ansicpg1257\deff0{\fonttbl{\f0\fnil\fcharset186{\*\fname Courier New;}Courier New Baltic;}{\f1\fmodern\fprq1\fcharset186{\*\fname Courier New;}Courier New Baltic;}{\f2\fmodern\fprq6\fcharset134 Arial Unicode MS;}{\f3\fmodern\fprq1\fcharset0 Courier New;}}
{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\lang1063\f0\fs20
\par
\lang1033\f3 [\lang1063\f1 ro]\par
MSG_HAS_CONNECTED = %s s-a conectat pe server.\par
MSG_WELCOME = Bine ai venit, %s. [red]Nu uita distractia pe primul loc[/red].\par
MSG_HAS_LEFT = %s a parasit serverul. \f0\par
}



si la galileo la fel , l-am tradus in ro si tot in en il ia.



0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore




 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Tutorials  


The time now is 27-04-2024, 12:53:00
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x