Jump to content

zombie


DuLceTeL

Recommended Posts

Server : zmp.ramgfort.ro

Nick : DuLceTeL
Grad server : fondator.
La ce doriţi ajutor? :  Vreau ajutor la un plugin.. luginu e facut.. dar vreau sa apara ca mesaj pe mijlocul ecranului cand pui tinta pe un jucator sa apara 

viata , armura , ammo , tara si oras 

Poză cu problema (Nu este obligatoriu) :

 

erroarea

 

 

L 07/29/2016 - 16:04:21: [AMXX] Displaying debug trace (plugin "zp_aim_info.amxx") 
L 07/29/2016 - 16:04:21: [AMXX] Run time error 10: native error (native "ClearSyncHud") 
L 07/29/2016 - 16:04:21: [AMXX] [0] zp_aim_info.sma::hideStatus (line 54) 
L 07/29/2016 - 16:04:22: HudSyncObject -1 is invalid 

 

 

 

SMA.

#include <amxmodx> 
#include <zombieplague> 
#include <Commas> 
#include <zmvip> 
#include <geoip> 


#define PLUGIN "Aim Info Plugin" 
#define VERSION "1.0" 
#define AUTHOR "@bdul!+Sn!ff3r" 

new g_status_sync 

public plugin_init() 

register_plugin(PLUGIN, VERSION, AUTHOR) 
register_event("StatusValue", "showStatus", "be", "1=2", "2!0") 
register_event("StatusValue", "hideStatus", "be", "1=1", "2=0") 




public showStatus(id) 

if(!is_user_bot(id) && is_user_connected(id)) 

new name[32], pid = read_data(2) 

get_user_name(pid, name, 31) 

new team1 = zp_get_user_zombie(id), team2 = zp_get_user_zombie(pid) 

if (team1 == team2) // friend 

static ip[16], country[45], city[45], text[512] 
get_user_ip(id, ip, charsmax(ip), 1) 
geoip_country(ip, country, charsmax(country)) 
geoip_city(ip, city, charsmax(city)) 
static HealthString[16], PacksString[16]; 
AddCommas(get_user_health(pid), HealthString, 15); 
AddCommas(zp_get_user_ammo_packs(pid), PacksString, 15); 
formatex(text, 511, "%s[Health:%s][Armor:%s][Packs:%s][%s][%s]", LANG_PLAYER, "AIM_INFO", (zv_get_user_flags(id) & ZV_UNLIMITED) ? "(Gold Member ®)" : "", name, HealthString, get_user_armor(pid), PacksString, country, city) 

message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("StatusText"),_,id) 
write_byte(0) 
write_string(text) 
message_end() 




public hideStatus(id) 

ClearSyncHud(id, g_status_sync) 

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE 
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par } 
*/ 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

mp_playermid "2" in server.cfg

 

Daca ai semiclip plugin-u pe server n-o sa-ti mearga.

 

Plugin-ul tau necesita un update la ultima versiune geoip , pentru o functionare cat mai corecta

 

Eu am ceva in PC fara bug-uri sau erori dar arata doar nume si hp , daca ai nevoie @replay si iti las un sma

Link to comment
Share on other sites

 

#include < amxmodx >
#include < amxmisc >
#include < fun >
#include < zombieplague >

#define PLUGIN        "AIM Info"
#define VERSION     "1.0"
#define AUTHOR        "LondoN eXtream"

new g_MsgSync;

public plugin_init ( ) {
    register_plugin ( PLUGIN, VERSION, AUTHOR );
    
    g_MsgSync = CreateHudSyncObj ( );
    
    register_event ( "StatusValue", "zp_display_info", "be" "1=2", "2!0" );
    register_event ( "StatusValue", "zp_remove_info", "be", "1=1", "2=0" );
    
}

public zp_display_info ( id ) {
    if ( is_user_bot ( id ) || is_user_hltv ( id ) )
        return PLUGIN_HANDLED;
        
        new Target = read_data ( 2 );
        
        new Name [ 32 ], Packs [ 32 ], Armor [ 32 ], HP [ 32 ], Country [ 32 ], IP [ 16 ], Data [ 512 ];
        
        get_user_name ( Target, Name, charsmax ( Name ) );
        get_user_ip ( Target, IP, charsmax ( IP ) );
        geoip_country ( IP, Country, charsmax ( Country ) );
        
        AddCommas ( zp_get_user_ammo_packs ( Target ), Packs, charsmax ( Packs ) );
        AddCommas ( get_user_health ( Target ), HP, charsmax ( HP ) );
        AddCommas ( get_user_armor ( Target ), Armor, charsmax ( Armor ) );
        
        if ( equal ( Country, "error" ) )
            formatex ( Data, charsmax ( Data ), "%s^nHP: %s | AP: %s | Packs: %s^nFrom: N/A", Name, HP, Armor, Packs );
        else
            formatex ( Data, charsmax ( Data ), "%s^nHP: %s | AP: %s | Packs: %s^nFrom: %s", Name, HP, Armor, Packs, Country );
            
        set_hudmessage(0, 127, 255, 0.31.0, 0.44, 0, 6.0, 12.0)
        ShowSyncHudMsg ( id, "%s", Data );
    }
    
    return 0;
}

public zp_remove_info ( id )
    ClearStatusSync ( id, g_MsgSync );
      

 

netestat

Link to comment
Share on other sites

  • 1 month later...

1 ce are london nu ai pluginu complet si ai a lu unu anak1n ( baiatu asta ar trebui banat ca vinde in comunitate niste chesti care se gasesc free + boost pe 200-300 drop reale la 2 euro :))+ pune pluginuri sma si amxx care au cv gen bind/gamemenu )

2ce tia lasat marvel nu are inregistrate 2-3 chesti si o sa iti intre in conflict cu multe pluginuri ( inclusiv plmenu.amxx) sa nu mai zic de altele

3 eu nu ma bag la alte tipuri de cs decat clasic si nu pot verifica daca merge sau nu asa ca nu iti las nimic... daca ai cv ma contactezi si modificam impreuna pana iasa un plugin ok

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...