hlmod.hu
https://hlmod.hu/

slot hud
https://hlmod.hu/viewtopic.php?f=9&t=4336
Oldal: 1 / 1

Szerző:  [S][M].#HaJ-HoO.~ [2012.05.07. 18:25 ]
Hozzászólás témája:  slot hud

Hali.

Az melyik plugin ami csak azt írja ki h hànybòl hàny jàtéko van.
pl: 18/18

Szerző:  fuck604 [2012.05.07. 18:37 ]
Hozzászólás témája:  Re: slot hud

Kód:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "pe7rik"


public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   set_task(0.1,"msg")
}

public msg(){
   client_print(id, print_chat, "18/18")
}


jolvan nem szórakozok megcsináltam neked
Kód:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "players"
#define VERSION "1.0"
#define AUTHOR "pe7rik"

new nMSGS
new bool
:update

public plugin_init
() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    set_task(0.1,"hudmsg")
    nMSGS = CreateHudSyncObj();
}

public hudmsg() {
    if(update){
        new iplayers[33]
        new ns
        new maxplayers
        maxplayers 
= get_maxplayers();
        get_players(iplayers, ns);
        set_hudmessage(0, 255, 255, 0.01, 0.15, 1, 6.0, 0.0)
        ShowSyncHudMsg(0, nMSGS, "%d/%d", ns, maxplayers)
    }
    else
   
{
        new iplayers[33]
        new ns
        new maxplayers
        maxplayers 
= get_maxplayers();
        get_players(iplayers, ns);
        set_hudmessage(0, 255, 255, 0.01, 0.15, 1, 6.0, 0.0)
        ShowSyncHudMsg(0, nMSGS, "%d/%d", ns, maxplayers)
    }
    
}

public client_connect(id)
    update = true;
    
public client_disconnect
(id)
    update = false;

Szerző:  CocaIne.^ [2012.05.07. 18:49 ]
Hozzászólás témája:  Re: slot hud

fuck, az 1.-t lájkolom, nem kérte, hogy változzon is XD
amúgy ez a leg 1 szerűbb :D
Kód:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "pe7rik"


public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   set_task(0.0,"msg")
}

public msg(id){
   new jatekosok = get_playersnum(1);
   new max = get_maxplayers();
   set_hudmessage(0, 255, 255, 0.01, 0.15, 1, 6.0, 4.0)
   show_hudmessage(id, "%d/%d", jatekosok , max)

Szerző:  HunGamer [2012.05.07. 18:51 ]
Hozzászólás témája:  Re: slot hud

fuck
Logban találni fogsz egy ajándékot :)
Ezt rakd még bele initbe
Kód:
nMSGS = CreateHudSyncObj();


(meg szerintem állandó üzenetként kellene)

Szerző:  fuck604 [2012.05.07. 19:31 ]
Hozzászólás témája:  Re: slot hud

CocaIne.^ írta:
fuck, az 1.-t lájkolom, nem kérte, hogy változzon is XD
amúgy ez a leg 1 szerűbb :D
Kód:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "pe7rik"


public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   set_task(0.0,"msg")
}

public msg(id){
   new jatekosok = get_playersnum(1);
   new max = get_maxplayers();
   set_hudmessage(0, 255, 255, 0.01, 0.15, 1, 6.0, 4.0)
   show_hudmessage(id, "%d/%d", jatekosok , max)
}


cocaine:Így csak 1x lekéri az enyém meg minden csatlakozásnál és lecsatlakozásnál frissíti.
Hungamer: javítva

Szerző:  CocaIne.^ [2012.05.07. 20:16 ]
Hozzászólás témája:  Re: slot hud

fuck604 írta:
CocaIne.^ írta:
fuck, az 1.-t lájkolom, nem kérte, hogy változzon is XD
amúgy ez a leg 1 szerűbb :D
Kód:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "pe7rik"


public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   set_task(0.0,"msg")
}

public msg(id){
   new jatekosok = get_playersnum(1);
   new max = get_maxplayers();
   set_hudmessage(0, 255, 255, 0.01, 0.15, 1, 6.0, 4.0)
   show_hudmessage(id, "%d/%d", jatekosok , max)
}


cocaine:Így csak 1x lekéri az enyém meg minden csatlakozásnál és lecsatlakozásnál frissíti.
Hungamer: javítva

az automatán frissíti.., magyarul enyém is jóh. :D

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