Connect Information
Правила на форума
ИНФОРМАЦИЯ: В този раздел най-вероятно няма да намерите много теми (възможно е и да е напълно празен), тъй като новите теми се местят в https://amxx-bg.info/viewforum.php?f=21 или https://amxx-bg.info/viewforum.php?f=22, зависимо от качеството им.
ИНФОРМАЦИЯ: В този раздел най-вероятно няма да намерите много теми (възможно е и да е напълно празен), тъй като новите теми се местят в https://amxx-bg.info/viewforum.php?f=21 или https://amxx-bg.info/viewforum.php?f=22, зависимо от качеството им.
-
atmax
Извън линия - Потребител
- Мнения: 492
- Регистриран на: 22 Мар 2018, 15:06
- Се отблагодари: 37 пъти
- Получена благодарност: 43 пъти
Connect Information
If you just type the name of this file in Google search bar it's the first thing that pops up.. https://gamebanana.com/maps/download/175951
Rest in peace my friend I always will remember you! 

-
OciXCrom
Извън линия - Администратор
- Мнения: 7206
- Регистриран на: 06 Окт 2016, 19:20
- Местоположение: /resetscore
- Се отблагодари: 117 пъти
- Получена благодарност: 1285 пъти
- Обратна връзка:
Connect Information
That's something else but it's not connected to the error you're getting.
-
atmax
Извън линия - Потребител
- Мнения: 492
- Регистриран на: 22 Мар 2018, 15:06
- Се отблагодари: 37 пъти
- Получена благодарност: 43 пъти
Connect Information
Well.. When you upload models/sprites and etc.. You have to upload it also to your fast download so players to be able to download that file before joining your server.
Rest in peace my friend I always will remember you! 

-
OciXCrom
Извън линия - Администратор
- Мнения: 7206
- Регистриран на: 06 Окт 2016, 19:20
- Местоположение: /resetscore
- Се отблагодари: 117 пъти
- Получена благодарност: 1285 пъти
- Обратна връзка:
Connect Information
I don't see .txt in the name. That's just a file without an extension.bulletxD написа: ↑21 Ное 2020, 07:57 i added txt file this made server stop here is the proof
https://prnt.sc/vn88g2
Connect Information
listen bro i stopped server and added it after restart download stops at one place
Connect Information
or can u give me similar plugin like this connect. I have this (Player %name from %country has joined the game!)
but this shows all wrong countries..
but this shows all wrong countries..
-
impossible
Извън линия - Потребител
- Мнения: 480
- Регистриран на: 15 Юни 2019, 12:41
- Се отблагодари: 23 пъти
- Получена благодарност: 46 пъти
Connect Information
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <amxmisc>
#include <geoip>
#define SHOW_COLOR 1
#define SHOW_CONNECT 2
#define SHOW_DISCONNECT 4
#define PLAY_SOUND_CONNECT 8
#define PLAY_SOUND_DISCONNECT 16
new display_type_pcvar
new name[33][32]
new authid[33][32]
new country[33][46]
new ip[33][32]
new connect_soundfile[64]
new disconnect_soundfile[64]
new saytext_msgid
public plugin_init()
{
register_plugin("GHW Connect Messages","1.0","GHW_Chronic")
display_type_pcvar = register_cvar("cm_flags","31")
register_cvar("cm_connect_string","[AMXX] %name (%steamid) has connected (%country).")
register_cvar("cm_disconnect_string","[AMXX] %name (%steamid) has disconnected (%country).")
saytext_msgid = get_user_msgid("SayText")
}
public plugin_precache()
{
register_cvar("cm_connect_sound","buttons/bell1.wav")
register_cvar("cm_disconnect_sound","fvox/blip.wav")
get_cvar_string("cm_connect_sound",connect_soundfile,63)
get_cvar_string("cm_disconnect_sound",disconnect_soundfile,63)
precache_sound(connect_soundfile)
precache_sound(disconnect_soundfile)
}
public client_putinserver(id)
{
if(!is_user_bot(id))
{
get_client_info(id)
new display_type = get_pcvar_num(display_type_pcvar)
if(display_type & SHOW_CONNECT)
{
new string[200]
get_cvar_string("cm_connect_string",string,199)
format(string,199,"^x01%s",string)
if(display_type & SHOW_COLOR)
{
new holder[46]
format(holder,45,"^x04%s^x01",name[id])
replace(string,199,"%name",holder)
format(holder,45,"^x04%s^x01",authid[id])
replace(string,199,"%steamid",holder)
format(holder,45,"^x04%s^x01",country[id])
replace(string,199,"%country",holder)
format(holder,45,"^x04%s^x01",ip[id])
replace(string,199,"%ip",holder)
}
else
{
replace(string,199,"%name",name[id])
replace(string,199,"%steamid",authid[id])
replace(string,199,"%country",country[id])
replace(string,199,"%ip",ip[id])
}
new num, players[32], player
get_players(players,num,"ch")
for(new i=0;i<num;i++)
{
player = players[i]
message_begin(MSG_ONE,saytext_msgid,{0,0,0},player)
write_byte(player)
write_string(string)
message_end()
if(display_type & PLAY_SOUND_CONNECT)
{
client_cmd(player,"spk %s",connect_soundfile)
}
}
}
}
}
public get_client_info(id)
{
get_user_name(id,name[id],31)
get_user_authid(id,authid[id],31)
get_user_ip(id,ip[id],31)
geoip_country(ip[id],country[id])
if(equal(country[id],"error"))
{
if(contain(ip[id],"192.168.")==0 || equal(ip[id],"127.0.0.1") || contain(ip[id],"10.")==0 || contain(ip[id],"172.")==0)
{
country[id] = "LAN"
}
if(equal(ip[id],"loopback"))
{
country[id] = "ListenServer User"
}
else
{
country[id] = "Unknown Country"
}
}
}
public client_infochanged(id)
{
if(!is_user_bot(id))
{
get_user_info(id,"name",name[id],31)
}
}
public client_disconnect(id)
{
if(!is_user_bot(id))
{
new display_type = get_pcvar_num(display_type_pcvar)
if(display_type & SHOW_DISCONNECT)
{
new string[200]
get_cvar_string("cm_disconnect_string",string,199)
format(string,199,"^x01%s",string)
if(display_type & SHOW_COLOR)
{
new holder[46]
format(holder,45,"^x04%s^x01",name[id])
replace(string,199,"%name",holder)
format(holder,45,"^x04%s^x01",authid[id])
replace(string,199,"%steamid",holder)
format(holder,45,"^x04%s^x01",country[id])
replace(string,199,"%country",holder)
format(holder,45,"^x04%s^x01",ip[id])
replace(string,199,"%ip",holder)
}
else
{
replace(string,199,"%name",name[id])
replace(string,199,"%steamid",authid[id])
replace(string,199,"%country",country[id])
replace(string,199,"%ip",ip[id])
}
new num, players[32], player
get_players(players,num,"ch")
for(new i=0;i<num;i++)
{
player = players[i]
message_begin(MSG_ONE,saytext_msgid,{0,0,0},player)
write_byte(player)
write_string(string)
message_end()
if(display_type & PLAY_SOUND_DISCONNECT)
{
client_cmd(player,"spk %s",disconnect_soundfile)
}
}
}
}
}
-
OciXCrom
Извън линия - Администратор
- Мнения: 7206
- Регистриран на: 06 Окт 2016, 19:20
- Местоположение: /resetscore
- Се отблагодари: 117 пъти
- Получена благодарност: 1285 пъти
- Обратна връзка:
Connect Information
The country detection depends on your GeoIP module, not the plugin itself. No matter which plugin you use, the result will be the same.
Connect Information
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <amxmisc>
#include <geoip>
#define MAXPLAYER 32
enum Color
{
YELLOW = 1, // Yellow
GREEN, // Green Color
TEAM_COLOR, // Red, grey, blue
GREY, // grey
RED, // Red
BLUE, // Blue
}
new TeamInfo;
new SayText;
new MaxSlots;
new TERRORIST[] = "TERRORIST";
new CT[] = "CT";
new NOTHING[] = "";
new SPEC[] = "SPECTATOR";
new bool:IsConnected[MAXPLAYER + 1];
public plugin_init()
{
register_plugin("ConnectInfo Ultimate", "3.0b2", "Diggz");
register_cvar("amx_joinmsg", "2") //1=connected only, 2=connecting + connected, 3=connecting connected disconnected
TeamInfo = get_user_msgid("TeamInfo");
SayText = get_user_msgid("SayText");
MaxSlots = get_maxplayers();
}
public client_putinserver(player)
{
IsConnected[player] = true;
if(get_cvar_num("amx_joinmsg") >= 1) {
new authid[35],user[32],ip[32],Country[33],City[33]
get_user_name(player,user,31)
get_user_ip(player,ip,31,1)
get_user_authid(player,authid,34)
geoip_country(ip,Country)
geoip_city(ip,City)
ColorChat(0, RED, "^x03%s^x01 joined from ^x04[^x03%s^x04] [^x03%s^x04]^x01 with ^x03%s^x04 IP",user,Country,City,ip);
client_cmd(0,"hud_saytext_time 8")
client_cmd(0,"hud_deathnotice_time 8") //remove if needed
}
}
public client_disconnect(player)
{
if(get_cvar_num("amx_joinmsg") >= 3) {
IsConnected[player] = false;
new authid[35],user[32],ip[32],Country[33],City[33]
get_user_name(player,user,31)
get_user_ip(player,ip,31,1)
get_user_authid(player,authid,34)
geoip_country(ip,Country)
geoip_city(ip,City)
ColorChat(0, BLUE, "^x03%s^x01 dropped. ^x04Info: ^x04[^x03%s^x04] [^x03%s^x04] [^x03%s^x04]",user,Country,City,ip);
}
}
public client_authorized(player)
{
IsConnected[player] = false;
if(get_cvar_num("amx_joinmsg") >= 2) {
new authid[35],user[32],ip[32],Country[33],City[33]
get_user_name(player,user,31)
get_user_ip(player,ip,31,1)
get_user_authid(player,authid,34)
geoip_country(ip,Country)
geoip_city(ip,City)
ColorChat(0, GREY, "^x03%s ^x04[^x03%s^x04] [^x03%s^x04]^x01 with ^x03%s^x04 IP^x01 connecting...",user,Country,City,ip);
}
}
public ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
static message[256];
switch(type)
{
case YELLOW: // Yellow
{
message[0] = 0x01;
}
case GREEN: // Green
{
message[0] = 0x04;
}
default: // White, Red, Blue
{
message[0] = 0x03;
}
}
vformat(message[1], 251, msg, 4);
// Make sure message is not longer than 192 character. Will crash the server.
message[192] = '^0';
new team, did;
if(id && IsConnected[id])
{
team = get_user_team(id);
did = color_selection(id, type);
show_message(id, id, MSG_ONE, message);
if(did)
{
TeamSelection(id, team);
}
} else {
new index = FindPlayer();
if(index != -1)
{
team = get_user_team(index);
did = color_selection(index, type);
show_message(index, 0, MSG_ALL, message);
if(did)
{
TeamSelection(index, team);
}
}
}
}
show_message(id, index, type, message[])
{
message_begin(type, SayText, {0, 0, 0}, index);
write_byte(id);
write_string(message);
message_end();
}
Team_Info(id, team[])
{
message_begin(MSG_ALL, TeamInfo);
write_byte(id);
write_string(team);
message_end();
return 1;
}
color_selection(index, Color:Type)
{
switch(Type)
{
case RED:
{
return Team_Info(index, TERRORIST);
}
case BLUE:
{
return Team_Info(index, CT);
}
case GREY:
{
return Team_Info(index, NOTHING);
}
}
return 0;
}
TeamSelection(index, team)
{
switch(team)
{
case 0:
{
Team_Info(index, NOTHING);
}
case 1:
{
Team_Info(index, TERRORIST);
}
case 2:
{
Team_Info(index, CT);
}
case 3:
{
Team_Info(index, SPEC);
}
}
}
FindPlayer()
{
new i = -1;
while(i <= MaxSlots)
{
if(IsConnected[++i])
{
return i;
}
}
return -1;
}
u gave me this i get error in geoip_city(ip,City) while compile
https://prnt.sc/vnnmcf
-
- Подобни теми
- Отговори
- Преглеждания
- Последно мнение
-
- 0 Отговори
- 1096 Преглеждания
-
Последно мнение от Lethality
-
- 0 Отговори
- 1556 Преглеждания
-
Последно мнение от Scorpions95
-
- 4 Отговори
- 2119 Преглеждания
-
Последно мнение от bulletxD
-
- 2 Отговори
- 1939 Преглеждания
-
Последно мнение от Season12
-
- 4 Отговори
- 4012 Преглеждания
-
Последно мнение от Marinovv
-
- 9 Отговори
- 4254 Преглеждания
-
Последно мнение от OciXCrom
-
- 2 Отговори
- 875 Преглеждания
-
Последно мнение от Radeon
Кой е на линия
Потребители разглеждащи този форум: 0 регистрирани и 0 госта