Despre hud-uri [Amxx]
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
- Membru, skill 0
- Posts: 2
- Joined: 16 Nov 2008, 16:27
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com!
- Detinator server CS: 86.122.4.39
vreau si eu la fel..da sa fie culoarea verde :-> ..imi poate face cineva?
- aNNakin
- Fost administrator
- Posts: 10464
- Joined: 17 Dec 2007, 21:42
- Detinator Steam: Da
- CS Status: a iubi - necesar si suficient
- Detinator server CS: romania.cs16.ro
- SteamID: anakin_cstrike16
- Reputatie: Membru Club eXtreamCS
Fost Contribuitor
Fost Scripter eXtreamCS
Fost Lider Echipa eXtreamCS
Fost Administrator - Location: di.fm
- Has thanked: 230 times
- Been thanked: 787 times
- Contact:
Iti poti face singur! este explicat aici tot.aLc wrote:vreau si eu la fel..da sa fie culoarea verde :-> ..imi poate face cineva?
-
- Fost moderator
- Posts: 2598
- Joined: 01 Dec 2008, 15:32
- Detinator Steam: Da
- Reputatie: Fost eXtream Mod
Fost contribuitor
Fost manager
Fost Scripter eXtreamCS - Has thanked: 15 times
- Been thanked: 152 times
aLc;
Code: Select all
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Mesaj"
#define VERSION "1.0"
#define AUTHOR "compaq_extream"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(20.0,"mesaj",0,_,_,_,0)
set_task(40.0,"mesaj2",0,_,_,_,0)
}
public mesaj(){
set_hudmessage(100, 0, 0, 0.33, 0.27, 2, 6.0, 12.0)
show_hudmessage(0, "viziteaza gogu.ro")
}
public mesaj2(){
set_hudmessage(100, 0, 0, 0.33, 0.27, 2, 6.0, 12.0)
show_hudmessage(0, "www.gogu.ro")
}
- aNNakin
- Fost administrator
- Posts: 10464
- Joined: 17 Dec 2007, 21:42
- Detinator Steam: Da
- CS Status: a iubi - necesar si suficient
- Detinator server CS: romania.cs16.ro
- SteamID: anakin_cstrike16
- Reputatie: Membru Club eXtreamCS
Fost Contribuitor
Fost Scripter eXtreamCS
Fost Lider Echipa eXtreamCS
Fost Administrator - Location: di.fm
- Has thanked: 230 times
- Been thanked: 787 times
- Contact:
Ai citit ce a scris?compaq_extream wrote:aLc;Code: Select all
#include <amxmodx> #include <amxmisc> #define PLUGIN "Mesaj" #define VERSION "1.0" #define AUTHOR "compaq_extream" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) set_task(20.0,"mesaj",0,_,_,_,0) set_task(40.0,"mesaj2",0,_,_,_,0) } public mesaj(){ set_hudmessage(100, 0, 0, 0.33, 0.27, 2, 6.0, 12.0) show_hudmessage(0, "viziteaza gogu.ro") } public mesaj2(){ set_hudmessage(100, 0, 0, 0.33, 0.27, 2, 6.0, 12.0) show_hudmessage(0, "www.gogu.ro") }
0 255 0 e verde, tu ai pus ~rosu
- Chaos
- Fost moderator
- Posts: 1723
- Joined: 12 Jul 2007, 23:47
- Detinator Steam: Da
- CS Status: Innactive User
- SteamID: dmx_ro
- Reputatie: Fost Mapper eXtreamCS
Fost Scripter eXtreamCS
Fost moderator - Location: Bucuresti
- Has thanked: 7 times
- Been thanked: 61 times
- Contact:
si amxmodx studio cum pune unde vrem acel mesaj pe ecran ?
a scris gyuky intrun topic dar nu gasesc deloc :|
a scris gyuky intrun topic dar nu gasesc deloc :|
Creez harti de Counter Strike 1.6 / Counter Strike Global Offensive la comanda, pentru contact apasa butonul pe sursa
- GYUKY
- Fost administrator
- Posts: 9280
- Joined: 07 Apr 2008, 10:19
- Detinator Steam: Da
- CS Status: INACTIV !
- Reputatie: Fost administrator
Membru Club eXtreamCS - Location: Germania
- Has thanked: 193 times
- Been thanked: 1156 times
TI-am dat PM :)) .... :DChAoS wrote:si amxmodx studio cum pune unde vrem acel mesaj pe ecran ?
a scris gyuky intrun topic dar nu gasesc deloc :|
Uite aici :
Tii apasat pe text si il muti cu cursorul de la mouse :D
- d3iul
- Membru, skill +1
- Posts: 244
- Joined: 29 Jan 2009, 12:12
- Detinator Steam: Nu
- CS Status: Daca iti cer ajutorul ajutama
- Detinator server CS: da
- Been thanked: 1 time
Am reusit si eu...
doi in unu , sunt 2 pluginuri create de mine impreuna si mai adaug/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Exec"
#define VERSION "1.0"
#define AUTHOR "Deiu"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("admin_exec" , "exec" ,ADMIN_KICK , "- Executa o comanda")
set_task(5.0, "mesaj", 0, _, _, _, 0)
// Add your code here...
}
public exec(id) {
server_cmd("exec userconfig.cfg")
}
public mesaj(){
set_hudmessage(0, 42, 255, 0.0, 0.6, 0, 6.0, 5.0)
show_hudmessage(0 , "Bine ati venit pe serveru-l nostru")
}
-
- Membru, skill 0
- Posts: 17
- Joined: 01 May 2008, 22:55
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com!
pluginul meu c-am asa arata.....am vrut sa fac ca mesajele sa se repete la infinit,iar acum nu imi mai apar...unde am gresit??
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Hud-Message"
#define VERSION "1.0"
#define AUTHOR "Administrator"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(10.0,"mesaje",0,"",0,"b",0)
set_task(20.0,"mesaje2",0,"",0,"b",0)
set_task(30.0,"mesaje3",0,"",0,"b",0)
set_task(40.0,"mesaje4",0,"",0,"b",0)
set_task(50.0,"mesaje5",0,"",0,"b",0)
set_task(60.0,"mesaje6",0,"",0,"b",0)
}
public mesaj(){
set_hudmessage(50,205,50, 0.01, 0.67, 0, 6.0, 12.0)
show_hudmessage(0, "mesaj")
}
public mesaj2(){
set_hudmessage(50,205,50, 0.01, 0.67, 0, 6.0, 12.0)
show_hudmessage(0, "mesaj2")
}
public mesaj3(){
set_hudmessage(50,205,50, 0.01, 0.67, 0, 6.0, 12.0)
show_hudmessage(0, "mesaj3")
}
public mesaj4(){
set_hudmessage(50,205,50, 0.01, 0.67, 0, 6.0, 12.0)
show_hudmessage(0, "mesaj4")
}
public mesaj5(){
set_hudmessage(50,205,50, 0.01, 0.67, 0, 6.0, 12.0)
show_hudmessage(0, "mesaj5")
}
public mesaj6(){
set_hudmessage(50,205,50, 0.01, 0.67, 0, 6.0, 12.0)
show_hudmessage(0, "mesaj6")
}
- d3iul
- Membru, skill +1
- Posts: 244
- Joined: 29 Jan 2009, 12:12
- Detinator Steam: Nu
- CS Status: Daca iti cer ajutorul ajutama
- Detinator server CS: da
- Been thanked: 1 time
Deci am facut in felul urmator:
1. vreau sa va intreb ce am gresit pe linia 13
2. Cum pot face si eu un meniu in care sa scriu say ... cum am scris acolo in plugin?
Ar veni ceva de genu asta?
Code: Select all
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "D3iu"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task( 15 , "mesaj",_,_,_,"b"_,0)
// Add your code here...
}
public client_putinserver(id){
set_hudmessage("200", "100" , "0", -1.00 , 2.00, 1 ,_,_,_,_,_)
show_hudmessage("id" , "Bine ati venit pe Darkstrike" , _)
}
public mesaj(){
set_hudmessage("200" , "100" ,"0" , 0.06 , 0.86, 1 ,_,_,_,_,_)
show_hudmessage(0 , "Pentru aflarea comenzilor scrieti in chat /comenzi" , _)
show_hudmessage(0 , "For commands available type in chat /commands
}
Code: Select all
Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Warning: Tag mismatch on line 13
Error: Expected token: ",", but found "_" on line 13
Error: Invalid expression, assumed zero on line 13
Error: Invalid expression, assumed zero on line 13
Error: Too many error messages on one line on line 13
Compilation aborted.
4 Errors.
Ar veni ceva de genu asta?
Code: Select all
register_clcmd("say /comenzi", "ClCmd_Say")
register_clcmd("say_team /comenzi", "ClCmd_Say")
register_clcmd("say /commands", "ClCmd_Say")
register_clcmd("say_team /commands", "ClCmd_Say")
- aNNakin
- Fost administrator
- Posts: 10464
- Joined: 17 Dec 2007, 21:42
- Detinator Steam: Da
- CS Status: a iubi - necesar si suficient
- Detinator server CS: romania.cs16.ro
- SteamID: anakin_cstrike16
- Reputatie: Membru Club eXtreamCS
Fost Contribuitor
Fost Scripter eXtreamCS
Fost Lider Echipa eXtreamCS
Fost Administrator - Location: di.fm
- Has thanked: 230 times
- Been thanked: 787 times
- Contact:
Nu poti face asa ca la un task, uitate cum a facut firew@ll in exemplu.set_hudmessage("200" , "100" ,"0" , 0.06 , 0.86, 1 ,_,_,_,_,_)
2. http://cs-utilz.net/viewtopic.php?f=33&t=156
- d3iul
- Membru, skill +1
- Posts: 244
- Joined: 29 Jan 2009, 12:12
- Detinator Steam: Nu
- CS Status: Daca iti cer ajutorul ajutama
- Detinator server CS: da
- Been thanked: 1 time
explica foarte prost samurai nu inteleg nimic
Unde pun ce sa apara ca nu inteleg nimic explica ca... sa nu zic ca ce samurai!
Scuze daca am incalcat vreo regula!
Code: Select all
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "D3iu"
public plugin_init() {
register_plugin("PLUGIN","VERSION","AUTHOR");
// inregistram meniul
register_menucmd(register_menuid("\yMenu Name:"), 1023, "menu_command" );
// inregistram o comanda
register_concmd("display_menu","show_the_menu",-1,"display my menu");
}
public show_the_menu(id,level,cid)
{
// variabile pentru meniu si butoane
new szMenuBody[256];
new keys;
// facem meniul
new nLen = format( szMenuBody, 255, "\yMy Menu:^n" ); // nume
nLen += format( szMenuBody[nLen], 255-nLen, "^n\w1. Apas butonul 1" ); // butonul 1
nLen += format( szMenuBody[nLen], 255-nLen, "^n\w2. Press botton 2" ); // butonul 2
nLen += format( szMenuBody[nLen], 255-nLen, "^n^n\w0. Ies din meniu" ); // iesire
// butoanele pe biti
keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
// afisam meniul
show_menu( id, keys, szMenuBody, -1 );
}
public menu_command(id,key,level,cid)
{
// vedem ce buton a apasa:
switch(key)
{
// daca a apasat pe butonul 1
case 0:
{
client_print(0,print_chat,"Comenzile disponibile sunt:/spiderman , /respawn ,/shop ,/capcane");
// mai adaugi ce vrei pe aici
// Dupa ce apesi pe butonul "1" meniul dispare. Daca vrei sa repara:
show_the_menu(id,level,cid);
}
// daca apas pe butonul 2
case 1:
{
// sa verificam daca are admin
if(!cmd_access(id,level,cid,1))
{
// inseamna ca nu are deci
return PLUGIN_HANDLED;
}
}
}
// inchidem functia:
return PLUGIN_HANDLED;
}
Scuze daca am incalcat vreo regula!