hlmod.hu
https://hlmod.hu/

[ZP] Parancsok
https://hlmod.hu/viewtopic.php?f=9&t=3165
Oldal: 1 / 1

Szerző:  CocaIne.^ [2012.01.20. 15:25 ]
Hozzászólás témája:  [ZP] Parancsok

Hali.
Írtam 1 iszonyat egyszerű plugint ami ez:
Kód:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>

public plugin_init()
{
register_plugin("Parancsok","1.0","CocaIne")
register_clcmd("say /parancs", "parancs")
register_event("ResetHUD","reset11","be")
}
public parancs(id)
{
ColorChat(0, RED, "^x04Parancsok:^x03/info , /vips , /rs , /bank , /kivesz , /kuld , /ujra")
}
public reset11(id) {
ColorChat(0, BLUE, "^x04[ZP] ^x03Parancsok:/parancs")
}


A baj pedig az h kb minden percben leírja 1x h:[ZP] Parancsok:/parancs
Mit lehetne vele csinálni h csak kör kezdetekor írja??

Szerző:  VirTuaL ~` [2012.01.20. 15:35 ]
Hozzászólás témája:  Re: [ZP] Parancsok

Próbáld.

Kód:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>

public plugin_init()
{
   register_plugin("Parancsok","1.0","CocaIne")
   register_clcmd("say /parancs", "parancs")
   register_event("ResetHUD","reset11","be")
   register_event("HLTV", "new_round", "a", "1=0", "2=0");
   register_event("TextMsg", "restart_round", "a", "2=#Game_will_restart_in");
}
public parancs(id)
{
ColorChat(0, RED, "^x04Parancsok:^x03/info , /vips , /rs , /bank , /kivesz , /kuld , /ujra")
}
public reset11(id) {
ColorChat(0, BLUE, "^x04[ZP] ^x03Parancsok:/parancs")
}


Bár ennyi erővel átírod a Round Chat plugint :P

Szerző:  Silent [2012.01.20. 15:46 ]
Hozzászólás témája:  Re: [ZP] Parancsok

Ne resethudot használj...
register_logevent("func", 2, "1=Round_Start")
aztán public func(id) stb :D

Szerző:  IrOn [2012.01.20. 16:15 ]
Hozzászólás témája:  Re: [ZP] Parancsok

és colorchat-nél ne 0-t adj meg, hanem id-t(mindenkinek kifogja így írni annyiszor amennyi ember van a szerveren)

Szerző:  CocaIne.^ [2012.01.20. 18:38 ]
Hozzászólás témája:  Re: [ZP] Parancsok

[mozgo]KÖSZÖNÖM![/mozgo]

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