hlmod.hu
https://hlmod.hu/

Plugin más moóddban
https://hlmod.hu/viewtopic.php?f=9&t=3762
Oldal: 1 / 3

Szerző:  tson_ [2012.03.18. 13:11 ]
Hozzászólás témája:  Plugin más moóddban

Hali o.o
A kérdésem hogy ezt
a plugint h lehetne használni nem ZP módban ?
felraktam le is töltötte azokat a nyavajákat de a végén nem lesz olyan xd
help

Szerző:  kiki [2012.03.18. 13:52 ]
Hozzászólás témája:  Re: Plugin más moóddban

Kiszeded a zps részeket belőle, és átírod csésre! Marha egyszerű!

Szerző:  tson_ [2012.03.18. 13:57 ]
Hozzászólás témája:  Re: Plugin más moóddban

kiki írta:
Kiszeded a zps részeket belőle, és átírod csésre! Marha egyszerű!

Az a baj hogy én még nem értek annyira hozzá esetleg ha megcsinálnád Mr. Kiki ÚR megköszönném! Kép Kép

Szerző:  tson_ [2012.03.18. 20:36 ]
Hozzászólás témája:  Re: Plugin más moóddban

Nah semmi ? :roll:

Szerző:  IrOn [2012.03.18. 20:46 ]
Hozzászólás témája:  Re: Plugin más moóddban

zp_advanced_win_msgs.sma:(csak ezt kell módosítani, másik SMA-t hagyhatod) - Nem volt teszt.
Kód:
#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <zp_dsohud>


// Win sprites dirs'
new const g_zombie_win[] = "sprites/zombie_plague/zombie_win.spr"
new const g_human_win[] = "sprites/zombie_plague/human_win.spr"

new g_maxplayers

public plugin_init()
{
    
register_plugin("[ZP] Advanced Win Msgs.""1.0""@bdul!");
    
    
// Round start event
    
register_event("HLTV""event_round_start""a""1=0""2=0")
    
    
//Win
    
register_event"SendAudio""TWin""a""2=%!MRAD_terwin" );
    
register_event"SendAudio""CTWin""a""2=%!MRAD_ctwin" );
    
    
// Retrieve max players
    
g_maxplayers get_maxplayers()
}

// Prechache the sprites
public plugin_precache()
{
    
precache_model(g_zombie_win)
    
precache_model(g_human_win)
}

// Remove win sprites on new round
public event_round_start()
{
    static 
id
    
for (id 1id <= g_maxplayersid++)
        
zp_remove_hud_sprite(id)
}

public 
TWin()
{
    static 
id
    
for (id 1id <= g_maxplayersid++)
    {
        
zp_display_hud_sprite(idg_zombie_win0.05)
    }
}

public 
CTWin()
{
    static 
id
    
for (id 1id <= g_maxplayersid++)
    {
        
zp_display_hud_sprite(idg_human_win0.04)
    }

Szerző:  tson_ [2012.03.18. 22:21 ]
Hozzászólás témája:  Re: Plugin más moóddban

IrOn123 írta:
zp_advanced_win_msgs.sma:(csak ezt kell módosítani, másik SMA-t hagyhatod) - Nem volt teszt.
Kód:
#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <zp_dsohud>


// Win sprites dirs'
new const g_zombie_win[] = "sprites/zombie_plague/zombie_win.spr"
new const g_human_win[] = "sprites/zombie_plague/human_win.spr"

new g_maxplayers

public plugin_init
()
{
    register_plugin("[ZP] Advanced Win Msgs.", "1.0", "@bdul!");
    
    
// Round start event
    register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
    
    
//Win
    register_event( "SendAudio", "TWin", "a", "2=%!MRAD_terwin" );
    register_event( "SendAudio", "CTWin", "a", "2=%!MRAD_ctwin" );
    
    
// Retrieve max players
    g_maxplayers = get_maxplayers()
}

// Prechache the sprites
public plugin_precache()
{
    precache_model(g_zombie_win)
    precache_model(g_human_win)
}

// Remove win sprites on new round
public event_round_start()
{
    static id
    for 
(id = 1; id <= g_maxplayers; id++)
        zp_remove_hud_sprite(id)
}

public TWin()
{
    static id
    for 
(id = 1; id <= g_maxplayers; id++)
    {
        zp_display_hud_sprite(id, g_zombie_win, 0.05)
    }
}

public CTWin()
{
    static id
    for 
(id = 1; id <= g_maxplayers; id++)
    {
        zp_display_hud_sprite(id, g_human_win, 0.04)
    }
}

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

files/5849577/5849577.sma(5) : fatal error 100: cannot read from file: "zp_dsohud"

Compilation aborted.
1 Error.

Szerző:  fear_ezmegmi [2012.03.18. 23:24 ]
Hozzászólás témája:  Re: Plugin más moóddban

Csatolmány:
zp_dsohud.inc [948bájt]
Letöltve 23 alkalommal.
add hozzá a zp_dsohud.inc -et.
vagy ha úgy nem megy a plugin akk próbáld így:
Kód:
  1. #include <amxmodx>

  2. #include <fakemeta>

  3. #include <fakemeta_util>

  4.  

  5.  

  6. // Win sprites dirs'

  7. new const g_zombie_win[] = "sprites/zombie_plague/zombie_win.spr"

  8. new const g_human_win[] = "sprites/zombie_plague/human_win.spr"

  9.  

  10. new g_maxplayers

  11.  

  12. public plugin_init()

  13. {

  14.     register_plugin("[ZP] Advanced Win Msgs.", "1.0", "@bdul!");

  15.    

  16.     // Round start event

  17.     register_event("HLTV", "event_round_start", "a", "1=0", "2=0")

  18.    

  19.     //Win

  20.     register_event( "SendAudio", "TWin", "a", "2=%!MRAD_terwin" );

  21.     register_event( "SendAudio", "CTWin", "a", "2=%!MRAD_ctwin" );

  22.    

  23.     // Retrieve max players

  24.     g_maxplayers = get_maxplayers()

  25. }

  26.  

  27. // Prechache the sprites

  28. public plugin_precache()

  29. {

  30.     precache_model(g_zombie_win)

  31.     precache_model(g_human_win)

  32. }

  33.  

  34. // Remove win sprites on new round

  35. public event_round_start()

  36. {

  37.     static id

  38.     for (id = 1; id <= g_maxplayers; id++)

  39.        remove_hud_sprite(id)

  40. }

  41.  

  42. public TWin()

  43. {

  44.     static id

  45.     for (id = 1; id <= g_maxplayers; id++)

  46.     {

  47.        display_hud_sprite(id, g_zombie_win, 0.05)

  48.     }

  49. }

  50.  

  51. public CTWin()

  52. {

  53.     static id

  54.     for (id = 1; id <= g_maxplayers; id++)

  55.     {

  56.         display_hud_sprite(id, g_human_win, 0.04)

  57.     }

  58. }

Szerző:  IrOn [2012.03.19. 06:59 ]
Hozzászólás témája:  Re: Plugin más moóddban

fear_ezmegmi írta:
Csatolmány:
zp_dsohud.inc
add hozzá a zp_dsohud.inc -et.
vagy ha úgy nem megy a plugin akk próbáld így:
Kód:
  1. #include <amxmodx>

  2. #include <fakemeta>

  3. #include <fakemeta_util>

  4.  

  5.  

  6. // Win sprites dirs'

  7. new const g_zombie_win[] = "sprites/zombie_plague/zombie_win.spr"

  8. new const g_human_win[] = "sprites/zombie_plague/human_win.spr"

  9.  

  10. new g_maxplayers

  11.  

  12. public plugin_init()

  13. {

  14.     register_plugin("[ZP] Advanced Win Msgs.", "1.0", "@bdul!");

  15.    

  16.     // Round start event

  17.     register_event("HLTV", "event_round_start", "a", "1=0", "2=0")

  18.    

  19.     //Win

  20.     register_event( "SendAudio", "TWin", "a", "2=%!MRAD_terwin" );

  21.     register_event( "SendAudio", "CTWin", "a", "2=%!MRAD_ctwin" );

  22.    

  23.     // Retrieve max players

  24.     g_maxplayers = get_maxplayers()

  25. }

  26.  

  27. // Prechache the sprites

  28. public plugin_precache()

  29. {

  30.     precache_model(g_zombie_win)

  31.     precache_model(g_human_win)

  32. }

  33.  

  34. // Remove win sprites on new round

  35. public event_round_start()

  36. {

  37.     static id

  38.     for (id = 1; id <= g_maxplayers; id++)

  39.        remove_hud_sprite(id)

  40. }

  41.  

  42. public TWin()

  43. {

  44.     static id

  45.     for (id = 1; id <= g_maxplayers; id++)

  46.     {

  47.        display_hud_sprite(id, g_zombie_win, 0.05)

  48.     }

  49. }

  50.  

  51. public CTWin()

  52. {

  53.     static id

  54.     for (id = 1; id <= g_maxplayers; id++)

  55.     {

  56.         display_hud_sprite(id, g_human_win, 0.04)

  57.     }

  58. }

így pont nem fog menni, mert kell az inc, gondoltam megvan neki, mivel az alapba is benne van
(nekem lefutott rendesen)

Szerző:  tson_ [2012.03.19. 13:42 ]
Hozzászólás témája:  Re: Plugin más moóddban

Hát én ezvel a win32 complier guiial vagy mivel próbáltam tömöríteni vagy mit csinálni de ilyen fátál error 100 cannot read from fakemeta_utilt ad ez mé van ? oO

Szerző:  kiki [2012.03.19. 13:48 ]
Hozzászólás témája:  Re: Plugin más moóddban

De emberek, mint látjátok ebben az inc fájlban nativek vannak, tehát kell hozzá egy plugin, vagy modul ami regisztálja a paramétereit, funckióit!

Oldal: 1 / 3 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/