14/03/2019, 07:58 PM
mi ayuda plugins no quiere funcionar
cuando muere o queda de spc él mosta la región y ciudad del jugador vivo
cuando muere o queda de spc él mosta la región y ciudad del jugador vivo
Código PHP:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <geoip>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "alex rafael"
new xUserCity[50]
new xUserRegion[50]
new xPlayerName[32]
new xPlayerIp[32]
new xMsgSync
new g_iMaxPlayers
//new xPlayerHudInfo[33]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
g_iMaxPlayers = get_maxplayers();
xMsgSync = CreateHudSyncObj()
}
public xPlayerHudInfo()
{
new id = read_data(1);
if (!is_user_alive(id))
return;
geoip_city(xPlayerIp, xUserCity, charsmax(xUserCity))
geoip_region_name(xPlayerIp, xUserRegion, charsmax(xUserRegion))
get_user_name(0, xPlayerName, charsmax(xPlayerName))
set_hudmessage(0, 255, 0, 0.02, 0.20, 0, 0.01, 1.0, 1.0, 1.0)
if(equal(xUserCity, "") || equal(xUserRegion, ""))
ShowSyncHudMsg(id, xMsgSync, "Observando: %s^n^n• Cidade: %s^n• Estado: %s", xPlayerName, xUserCity, xUserRegion)
}