hlmod.hu
https://hlmod.hu/

ölés mutató plugin
https://hlmod.hu/viewtopic.php?f=9&t=3384
Oldal: 1 / 1

Szerző:  rericsi8 [2012.02.10. 20:26 ]
Hozzászólás témája:  ölés mutató plugin

Hi
ezt valaki át tudná írni nekem úgy, hogy ne azt mutassa hogy hány kört nyertek a ct-k ill. a t-k, hanem mennyit öltek a CT-k és a T-k
THX

Szerző:  DeteCT0R [2012.02.10. 20:38 ]
Hozzászólás témája:  Re: ölés mutató plugin

Plugin?Sma?

Szerző:  CocaIne.^ [2012.02.10. 20:39 ]
Hozzászólás témája:  Re: ölés mutató plugin

rericsi8 írta:
Hi
ezt valaki át tudná írni nekem úgy, hogy ne azt mutassa hogy hány kört nyertek a ct-k ill. a t-k, hanem mennyit öltek a CT-k és a T-k
THX

mit tudná átírni? Lehagytad az sma-t

Szerző:  rericsi8 [2012.02.10. 20:43 ]
Hozzászólás témája:  Re: ölés mutató plugin

ja sorry XD
Kód:
#include <amxmodx>
#include <amxmisc>
#include <dhudmessage>

#define PLUGIN   "Team Score"
#define VERSION   "1.0"
#define AUTHOR   "BaRSiK"

new ct_score, terrorist_score;

public plugin_init()
{
   register_plugin(PLUGIN, VERSION, AUTHOR);
   register_event("TeamScore", "team_score", "a");
   set_task(1.0,"score_round",_,_,_,"b")
}

public team_score()
{
   new team[32];
   read_data(1,team,31);
   if (equal(team,"CT"))
   {
      ct_score = read_data(2);
   }
   else if (equal(team,"TERRORIST"))
   {
      terrorist_score = read_data(2);
   }
}
   
public score_round()
{
   set_dhudmessage(0, 70, 200, -1.0, 0.0, 0, 0.5, 2.0, 0.08, 2.0, true);
   show_dhudmessage(0,"CT:%d|                       ", ct_score);
   
   set_dhudmessage(200, 0, 0, -1.0, 0.0, 0, 0.5, 2.0, 0.08, 2.0, true);
   show_dhudmessage(0,"                       |%d:T", terrorist_score);
}

Szerző:  IrOn [2012.02.10. 21:02 ]
Hozzászólás témája:  Re: ölés mutató plugin

teszt nemvót
Kód:
#include <amxmodx>
#include <amxmisc>
#include <dhudmessage>
#include <cstrike>

#define PLUGIN   "Team Score"
#define VERSION   "1.0"
#define AUTHOR   "BaRSiK"

new ct_kill, terrorist_kill;

public plugin_init()
{
   register_plugin(PLUGIN, VERSION, AUTHOR);
   set_task(1.0,"score_round",_,_,_,"b")
   register_event( "DeathMsg", "kill", "a" );
}

public kill()
{
    new killer = read_data( 1 );
    new victim = read_data( 2 );
    if(cs_get_user_team(victim) == CS_TEAM_CT && cs_get_user_team(killer) == CS_TEAM_T)
    {
        terrorist_kill+=1;
    } else if(cs_get_user_team(victim) == CS_TEAM_T && cs_get_user_team(killer) == CS_TEAM_CT) {
        ct_kill+=1;
    }
}
   
public score_round
()
{
   set_dhudmessage(0, 70, 200, -1.0, 0.0, 0, 0.5, 2.0, 0.08, 2.0, true);
   show_dhudmessage(0,"CT:%d|                       ", ct_kill);
   
   set_dhudmessage
(200, 0, 0, -1.0, 0.0, 0, 0.5, 2.0, 0.08, 2.0, true);
   show_dhudmessage(0,"                       |%d:T", terrorist_kill);
}

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