4en3rgY Romania
Team Permanent Messages (HUD)(v1.1) 2z8bv910
Welcome To 4EN3RGY Romania
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

4en3rgY Romania


Nu sunteti conectat. Conectați-vă sau înregistrați-vă

Team Permanent Messages (HUD)(v1.1)

Vezi subiectul anterior Vezi subiectul urmator In jos  Mesaj [Pagina 1 din 1]

1Team Permanent Messages (HUD)(v1.1) Empty Team Permanent Messages (HUD)(v1.1) Mier 06 Apr 2011, 22:44

Viorel

ViorelFondator

Descriere: arata mesaje in hud (sub radar) cu mesaje specifice pentru fiecare echipa.
    * Mesajele si culorile acestora le puteti modifica.


Descarcare: Link! (+cstrike module)
Sursa:
[sursa=]#include
#include

new const P_NAME[]= "TEAM PERM MSG"
new const P_VERS[]= "1.0"
new const P_AUTH[]= "P.Of.Pw"

new const ct_msg[]="Tineti X-urile^nGL & HF"
#define CT_R 255
#define CT_G 0
#define CT_B 0

new const te_msg[]="Plantati Bomba^nGL & HF"
#define TE_R 0
#define TE_G 0
#define TE_B 255

new const spc_msg[]="Pentru admin [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
#define SPC_R 192
#define SPC_G 192
#define SPC_B 192

public plugin_init() {
register_plugin(P_NAME,P_VERS,P_AUTH)

set_task(0.1,"cmdTeamHudMsg",_,_,_,"b")
}

public cmdTeamHudMsg() {
new players[32],num,messages[200]
get_players(players,num)
for(new pofpw = 0; pofpw <= num; pofpw++)
{
new id = players[pofpw]
if(is_user_connected(id))
{
if(cs_get_user_team(id) == CS_TEAM_T) {
set_hudmessage (CT_R,CT_G,CT_B, 0.01, 0.29, 0, 6.0, 2.0, 0.1, 0.2, 4)
format(messages,199,te_msg)
show_hudmessage(id,messages)

}
else if(cs_get_user_team(id) == CS_TEAM_CT) {
set_hudmessage (TE_R,TE_G,TE_B, 0.01, 0.29, 0, 6.0, 2.0, 0.1, 0.2, 4)
format(messages,199,ct_msg)
show_hudmessage(id,messages)

}
else if(cs_get_user_team(id) == CS_TEAM_SPECTATOR) {
set_hudmessage (SPC_R,SPC_G,SPC_B, 0.01, 0.29, 0, 6.0, 2.0, 0.1, 0.2, 4)
format(messages,199,spc_msg)
show_hudmessage(id,messages)

}
else if(cs_get_user_team(id) == CS_TEAM_UNASSIGNED ) {
new UNASSIGNED_R = 170
new UNASSIGNED_G = 212
new UNASSIGNED_B = 255
set_hudmessage (UNASSIGNED_R,UNASSIGNED_G,UNASSIGNED_B, 0.01, 0.29, 1, 6.0, 2.0, 0.1, 0.2, 4)
format(messages,199,"Plugin Name: %s^nPlugin Version: %s^nPlugin Author: %s",P_NAME,P_VERS,P_AUTH)
show_hudmessage(id,messages)
}
}
}
return PLUGIN_CONTINUE
}[/sursa]

Link! no (fara) cstrike module
Sursa:
[sursa=]#include

new const P_NAME[]= "TEAM PERM MSG"
new const P_VERS[]= "1.1"
new const P_AUTH[]= "P.Of.Pw"

new const ct_msg[]="Tineti X-urile^nGL & HF"
#define CT_R 255
#define CT_G 0
#define CT_B 0

new const te_msg[]="Plantati Bomba^nGL & HF"
#define TE_R 0
#define TE_G 0
#define TE_B 255

new const spc_msg[]="Pentru admin [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
#define SPC_R 255
#define SPC_G 255
#define SPC_B 255

public plugin_init() {
register_plugin(P_NAME,P_VERS,P_AUTH)

set_task(1.0,"cmdTeamHudMsg",_,_,_,"b")
}

public cmdTeamHudMsg() {
new players[32],num,messages[200]
get_players(players,num)
for(new pofpw = 0; pofpw <= num; pofpw++)
{
new id = players[pofpw]
new team = get_user_team(id)
if(is_user_connected(id))
{
if(team==1) {
set_hudmessage (CT_R,CT_G,CT_B, 0.01, 0.29, 0, 6.0, 2.0, 0.1, 0.2, 4)
format(messages,199,te_msg)
show_hudmessage(id,messages)

}
else if(team==2) {
set_hudmessage (TE_R,TE_G,TE_B, 0.01, 0.29, 0, 6.0, 2.0, 0.1, 0.2, 4)
format(messages,199,ct_msg)
show_hudmessage(id,messages)

}
else if(team==3) {
set_hudmessage (SPC_R,SPC_G,SPC_B, 0.01, 0.29, 0, 6.0, 2.0, 0.2, 0.2, 4)
format(messages,199,spc_msg)
show_hudmessage(id,messages)
}
else if(team==0) {
new UNASSIGNED_R = 170
new UNASSIGNED_G = 212
new UNASSIGNED_B = 255
set_hudmessage (UNASSIGNED_R,UNASSIGNED_G,UNASSIGNED_B, 0.01, 0.29, 1, 6.0, 2.0, 0.1, 0.2, 4)
format(messages,199,"Plugin Name: %s^nPlugin Version: %s^nPlugin Author: %s",P_NAME,P_VERS,P_AUTH)
show_hudmessage(id,messages)
}

}
}
return PLUGIN_CONTINUE
}[/sursa]

Nume: Team Permanent Messages
Versiune: 1.0 / v1.1
    v1.1 - eliminare Modul 'CStrike'

Autor: PoSiTiOn Of PoWeR aka AlinHD
Idee data de: ProTecTioN / [Trebuie sa fiti inscris si conectat pentru a vedea acest link]

Altele:
* Pentru a modifica mesajul ce apare la Echipa CT modificati:
new const ct_msg[]="Tineti X-urile^nGL & HF" //mesajul
#define CT_R 255 // culoarea in format R
#define CT_G 0 // culoarea in format G
#define CT_B 0 // culoarea in format B

* Pentru a modifica mesajul ce apare la Echipa Tero modificati:
new const te_msg[]="Plantati Bomba^nGL & HF" //mesajul
#define TE_R 0 // culoarea in format R
#define TE_G 0 // culoarea in format G
#define TE_B 255 // culoarea in format B

* Pentru a modifica mesajul ce apare la Echipa Spectator modificati:

new const spc_msg[]="Pentru admin [Trebuie sa fiti inscris si conectat pentru a vedea acest link]" //mesajul
#define SPC_R 192 // culoarea in format R
#define SPC_G 192 // culoarea in format G
#define SPC_B 192 // culoarea in format B

* Pentru a modifica mesajul ce apare la Echipa UNASSIGNED(adica cand iti alegi echipa) modificati:

new UNASSIGNED_R = 170 // culoarea in format R
new UNASSIGNED_G = 212 // culoarea in format G
new UNASSIGNED_B = 255 // culoarea in format B
format(messages,199,"Plugin Name: %s^nPlugin Version: %s^nPlugin Author: %s",P_NAME,P_VERS,P_AUTH) // mesajul
Instalare:
1. Fisierul team_perm_msg.sma il puneti in addons/amxmodx/scripting
2. Fisierul team_perm_msg.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Cod:
team_perm_msg.amxx

Module necesare [pentru v1.0] (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):
    CStrike


Imagini:
Mesaj CT: [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
Mesaj Tero: [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
Mesaj Spectator: [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
Mesaj UNASSIGNED (cand esti la meniul de iti alegi echipa): [Trebuie sa fiti inscris si conectat pentru a vedea acest link]

GL & HF !

Vezi subiectul anterior Vezi subiectul urmator Sus  Mesaj [Pagina 1 din 1]

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum

 

Copyright @ 2010-2024 by 4en3rgY ~> All rights reserved.