ForuM -- FuN-ZonE --
Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.

Team Permanent Messages (HUD)(v1.1)

In jos

Team Permanent Messages (HUD)(v1.1) Empty Team Permanent Messages (HUD)(v1.1)

Mesaj  BeRcU Joi Iul 16, 2009 10:01 pm

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 <amxmodx>
#include <cstrike>

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 http://www.nume.ro"
#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 <amxmodx>

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 http://www.nume.ro"
#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 / http://extreamcs.com/forum/viewtopic.php?p=206067#p206067

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 http://www.nume.ro" //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: https://2img.net/h/i305.photobucket.com/albums/nn213/AlinHD/ct_msg.png
Mesaj Tero: https://2img.net/h/i305.photobucket.com/albums/nn213/AlinHD/te_msg.png
Mesaj Spectator: https://2img.net/h/i305.photobucket.com/albums/nn213/AlinHD/spc_msg.png
Mesaj UNASSIGNED (cand esti la meniul de iti alegi echipa): https://2img.net/h/i305.photobucket.com/albums/nn213/AlinHD/unsg_msg.png

GL & HF !

BeRcU
Admin

Mesaje : 239
Data de înscriere : 09/07/2009
Varsta : 31
Localizare : Alexadria

https://fun-zone.forum.st

Sus In jos

Sus

- Subiecte similare

 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum