I'm having trouble compiling a plugin connection.
I have the code, but when I compile it gives an error:
th_conexao.sp (47): warning 234: symbol "GetClientAuthString" is marked as deprecated: Use GetClientAuthId
I'll leave the code to help me.
Thank you.
-
#include <sourcemod>
#include <geoip>
#include <colors>
public Plugin:myinfo =
{
name = "[CS:GO/CSS] Londrina Pro League Stats",
author = "MMYTH e AbNeR @CSB",
description = "Mensagens quando o player conecta/disconecta.",
version = "2.0",
url = "http://www.tecnohardclan.com/"
};
public OnClientPutInServer(client)
{
decl String:name[128];
decl String:steamid[128];
decl String:ip[128];
decl String:country[128];
GetClientName(client, name, sizeof(name));
CPrintToChatAll("{green}[Londrina Pro League] {default}Jogador: {green}%s", name);
GetClientAuthString(client, steamid, sizeof(steamid));
CPrintToChatAll("{green}[Londrina Pro League] {default}SteamID: {green}%s", steamid);
GetClientIP(client, ip, sizeof(ip), false);//Para aparecer o IP, retire as duas barras abaixo
CPrintToChatAll("{green}[Londrina Pro League] {default}IP: {green}%s", ip);
if(GeoipCountry(ip, country, sizeof(country)))
{
CPrintToChatAll("{green}[Londrina Pro League] {default}País: {green}%s", country);
}
else
{
CPrintToChatAll("{green}[Londrina Pro League] {default}País: {green}Indefinido.");
}
}
public OnClientDisconnect(client)
{
decl String:name[128];
decl String:steamid[128];
GetClientName(client, name, sizeof(name));
GetClientAuthString(client, steamid, sizeof(steamid));
CPrintToChatAll("{green}[Londrina Pro League] {default}O jogador {green}%s {olive}Steam: %s{default} desconectou-se.", name, steamid);
}
|