plugins no quiere funcionar
#1
mi ayuda plugins no quiere funcionar

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(PLUGINVERSIONAUTHOR)
    
g_iMaxPlayers get_maxplayers();

xMsgSync CreateHudSyncObj()
}

public 
xPlayerHudInfo()
{
    
new 
id read_data(1);
if (!
is_user_alive(id))
return; 

geoip_city(xPlayerIpxUserCitycharsmax(xUserCity))
geoip_region_name(xPlayerIpxUserRegioncharsmax(xUserRegion))
get_user_name(0xPlayerNamecharsmax(xPlayerName))

set_hudmessage(025500.020.2000.011.01.01.0)

if(
equal(xUserCity"") || equal(xUserRegion""))
ShowSyncHudMsg(idxMsgSync"Observando: %s^n^n• Cidade: %s^n• Estado: %s"xPlayerNamexUserCityxUserRegion)


Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)