Raised This Month: $12 Target: $400
 3% 

HUD TITILAN [AYUDA]


  
 
 
Thread Tools Display Modes
Author Message
cojonesxx
Junior Member
Join Date: Apr 2011
Old 04-17-2012 , 18:24   HUD TITILAN [AYUDA]
#1

Hola amigos Por favor necesito de su ayuda! Resulta que quiero poner plugines a titilar osea tengo muchos el cual quiero ponerlos a titilar e buscado en todos lados pero o encuentro nada! Pase por aqui por esta web y medio puede ver algo pero no entiendo nada por esa parte soy "Novato" Quisiera que me dejaran algun tuto que explicara paso a paso Quiero Colocar este Plugin a titilar utsounds.


#include <amxmodx>
#include <amxmisc>

#define VERSION "1.0"

new g_Play[33], g_FirstBlood, g_MultiKills[33], g_Spree[33]

new g_MultiKillLvls[7] = {2, 3, 4, 5, 6, 7, 8}
new g_SpreeLvls[6] = {5, 10, 15, 20, 25, 30}

new g_MultiKillMsgs[7][] =
{
"UT_DOUBLEKILL",
"UT_MULTIKILL",
"UT_MEGAKILL",
"UT_ULTRAKILL",
"UT_MONSTERKILL",
"UT_LUDICROUS",
"UT_HOLYSHIT"
}

new g_SpreeMsgs[6][] =
{
"UT_KILLINGSPREE",
"UT_RAMPAGE",
"UT_DOMINATING",
"UT_UNSTOPPABLE",
"UT_GODLIKE",
"UT_WICKEDSICK"
}

new g_MultiKillSnds[7][] =
{
"misc/ut/doublekill.wav",
"misc/ut/multikill.wav",
"misc/ut/megakill.wav",
"misc/ut/ultrakill.wav",
"misc/ut/monsterkill.wav",
"misc/ut/ludicrouskill.wav",
"misc/ut/holyshit.wav"
}

new g_SpreeSnds[6][] =
{
"misc/ut/killingspree.wav",
"misc/ut/rampage.wav",
"misc/ut/dominating.wav",
"misc/ut/unstoppable.wav",
"misc/ut/godlike.wav",
"misc/ut/wickedsick.wav"
}

new ut_sounds, ut_play, ut_headshot, ut_firstblood, ut_multikill, ut_spree

public plugin_init()
{
register_plugin("Unreal Tournament Sounds", VERSION, "hleV")

register_dictionary("utsounds.txt")

register_clcmd("say /utsounds", "cmdInfo")

ut_sounds = register_cvar("ut_sounds", VERSION, FCVAR_SPONLY|FCVAR_SERVER)
ut_play = register_cvar("ut_play", "1")
ut_headshot = register_cvar("ut_headshot", "1")
ut_firstblood = register_cvar("ut_firstblood", "1")
ut_multikill = register_cvar("ut_multikill", "1")
ut_spree = register_cvar("ut_spree", "1")

register_event("ResetHUD", "playerSpawn", "be")
register_event("DeathMsg", "playerDeath", "a", "1>0")

g_FirstBlood = 1
}

public cmdInfo(id)
client_print(id, print_chat, "UT Sounds %s by hleV | Download @ www.amxmodx.org", VERSION)

public client_connect(id)
{
g_Play[id] = 1
g_MultiKills[id] = 0
g_Spree[id] = 0
}

public playerSpawn(id)
{
if (get_pcvar_num(ut_play) && g_Play[id] && is_user_alive(id))
{
client_cmd(id, "speak misc/ut/play")

g_Play[id] = 0
}
}

public playerDeath()
{
new killer = read_data(1)
new victim = read_data(2)

if (!get_pcvar_num(ut_sounds) || killer == victim)
return PLUGIN_HANDLED

new headshot, killerName[32]
read_data(3, headshot)
get_user_name(killer, killerName, 31)

if (get_pcvar_num(ut_headshot) && headshot)
{
if (g_MultiKills[killer] <= 0)
{
set_hudmessage(255, 0, 0, -1.0, 0.25, 0, 6.0, 1.5, 0.1, 0.2, -1)
show_hudmessage(killer, "%L", LANG_SERVER, "UT_HEADSHOT")
}

client_cmd(killer, "speak misc/ut/headshot")
}

if (get_pcvar_num(ut_firstblood) && g_FirstBlood)
{
set_hudmessage(255, 0, 0, -1.0, 0.75, 0, 6.0, 5.0, 0.1, 0.2, -1)
show_hudmessage(0, "%L", LANG_SERVER, "UT_FIRSTBLOOD", killerName)
client_cmd(killer, "speak misc/ut/firstblood")

g_FirstBlood = 0
}

if (get_pcvar_num(ut_multikill))
{
g_MultiKills[killer] += 1

remove_task(killer)
set_task(5.0, "stopMultiKills", killer)

for (new i = 0; i < 7; i++)
{
set_hudmessage(255, 0, 0, -1.0, 0.25, 0, 6.0, 1.5, 0.1, 0.2, -1)

if (g_MultiKills[killer] == g_MultiKillLvls[i])
{
show_hudmessage(killer, "%L", LANG_SERVER, g_MultiKillMsgs[i])
client_cmd(killer, "speak %s", g_MultiKillSnds[i])
}
else if (g_MultiKills[killer] >= 9)
{
show_hudmessage(killer, "%L", LANG_SERVER, "UT_HOLYSHIT")
client_cmd(killer, "speak misc/ut/holyshit")
}
}
}

if (get_pcvar_num(ut_spree))
{
new victimName[32]
get_user_name(victim, victimName, 31)

g_Spree[killer] += 1

for (new i; i < 6; i++)
{
set_hudmessage(0, 0, 255, -1.0, 0.75, 0, 6.0, 5.0, 0.1, 0.2, -1)

if (g_Spree[killer] == g_SpreeLvls[i])
{
show_hudmessage(killer, "%L", LANG_SERVER, g_SpreeMsgs[i])
client_cmd(killer, "speak %s", g_SpreeSnds[i])
}

if (g_Spree[victim] >= g_SpreeLvls[i])
show_hudmessage(0, "%L", LANG_SERVER, "UT_SPREEENDED", victimName, killerName)
}

g_Spree[victim] = 0
}

return PLUGIN_CONTINUE
}

public stopMultiKills(id)
g_MultiKills[id] = 0

public plugin_precache()
{
precache_sound("misc/ut/play.wav")
precache_sound("misc/ut/headshot.wav")
precache_sound("misc/ut/firstblood.wav")
precache_sound("misc/ut/dominating.wav")
precache_sound("misc/ut/doublekill.wav")
precache_sound("misc/ut/godlike.wav")
precache_sound("misc/ut/holyshit.wav")
precache_sound("misc/ut/killingspree.wav")
precache_sound("misc/ut/ludicrouskill.wav")
precache_sound("misc/ut/megakill.wav")
precache_sound("misc/ut/multikill.wav")
precache_sound("misc/ut/monsterkill.wav")
precache_sound("misc/ut/rampage.wav")
precache_sound("misc/ut/ultrakill.wav")
precache_sound("misc/ut/unstoppable.wav")
precache_sound("misc/ut/wickedsick.wav")
for (new i; i < 7; i++)
precache_sound(g_MultiKillSnds[i])

for (new i; i < 6; i++)
precache_sound(g_SpreeSnds[i])
}
cojonesxx is offline
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 04-17-2012 , 18:26   Re: HUD TITILAN [AYUDA]
#2

cuando te leas las reglas te ayudaremos.
__________________
xLeoNNN is offline
Send a message via MSN to xLeoNNN
CoQuito
Senior Member
Join Date: Jul 2011
Location: Hempstead, New York
Old 04-17-2012 , 18:30   Re: HUD TITILAN [AYUDA]
#3

es Sencillo solo tenes que modificar esta parte del hud

set_hudmessage(255, 0, 0, -1.0, 0.25, 1, 6.0, 1.5, 0.1, 0.2, -1)

estava en 0 lo puse en 1
y asi con todos los Hud que necesites que titilen por que hay es donde se modifica
el efecto 0 es normal, 1 titilea y 2 no me recuerdo;

te recomiendo que aprendas que significa cada cosa de un HUD y como esta conformando.

IMPORTANTISIMO:
Hace Clik Aquí
Lee las reglas del foro que tu thread esta violando algunas;

Salu2
__________________
CoQuito is offline
Send a message via MSN to CoQuito Send a message via Skype™ to CoQuito
cojonesxx
Junior Member
Join Date: Apr 2011
Old 04-17-2012 , 18:31   Re: HUD TITILAN [AYUDA]
#4

Quote:
Originally Posted by xLeoNNN View Post
cuando te leas las reglas te ayudaremos.
Que reglas men no estoy para eso vivo muy ocupado... Ayudame si voz
cojonesxx is offline
leonard19941
Veteran Member
Join Date: Jun 2011
Old 04-17-2012 , 18:50   Re: HUD TITILAN [AYUDA]
#5

Quote:
Originally Posted by CoQuito View Post
es Sencillo solo tenes que modificar esta parte del hud

set_hudmessage(255, 0, 0, -1.0, 0.25, 1, 6.0, 1.5, 0.1, 0.2, -1)

estava en 0 lo puse en 1
y asi con todos los Hud que necesites que titilen por que hay es donde se modifica
el efecto 0 es normal, 1 titilea y 2 no me recuerdo;

te recomiendo que aprendas que significa cada cosa de un HUD y como esta conformando.

IMPORTANTISIMO:
Hace Clik Aquí
Lee las reglas del foro que tu thread esta violando algunas;

Salu2
perodon por meterme, pero CoQuito tienes algun tuto (en español mejor) donde explique que signifca cada cosa, gracias.

PD:Siempre utilize lo del AmxStudio y no le di importancia, pero ahora me iteresa.
__________________
leonard19941 is offline
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 04-17-2012 , 18:51   Re: HUD TITILAN [AYUDA]
#6

Quote:
Originally Posted by cojonesxx View Post
Que reglas men no estoy para eso vivo muy ocupado... Ayudame si voz
http://forums.alliedmods.net/showthread.php?t=149597

si estas tan ocupado que no puedes leer las reglas, no vengas a pedir ayuda a este foro.
__________________

Last edited by xLeoNNN; 04-17-2012 at 18:53.
xLeoNNN is offline
Send a message via MSN to xLeoNNN
Swaycher
Senior Member
Join Date: Feb 2009
Location: Arg/MyHome/PawnStudio
Old 04-17-2012 , 19:23   Re: HUD TITILAN [AYUDA]
#7

Quote:
Originally Posted by leonard19941 View Post
perodon por meterme, pero CoQuito tienes algun tuto (en español mejor) donde explique que signifca cada cosa, gracias.

PD:Siempre utilize lo del AmxStudio y no le di importancia, pero ahora me iteresa.
PHP Code:
set_hudmessage(255255255, -1.0, -1.017.010.04.03.0, -
Parametros:

PHP Code:
red=200green=100blue=0Float:x=-1.0Float:y=0.35effects=0Float:fxtime=6.0Float:holdtime=12.0Float:fadeintime=X/*(nose el default value de este param)*/Float:fadeouttime=X/*(tampoco el de este)*/channel=4
red, green y blue: Son los colores, lo que esta asignado ya en el hud es el default (amarillo)

Float:X y Float:Y: Posicion del hud (aclaro que si pones 3 y no usas el .0 osea 3.0 tirara tag mismatch)

effects: default 0, (1 el hud titila y 2 creo que no hay)

Float:fxtime: 6.0 default (tiempo que durara el hud mostrandose en pantalla)

Float:holdtime: No estoy seguro :S

Float:fadeintime: tiempo que tarda el hud en aparecer

Float:fadeouttime: tiempo que tarda el hud en irse

channel: default 4 (No se que es)

Espero que te sirva :4
__________________
Quote:
Originally Posted by fearAR View Post
Claro esta que no tengo idea de como verificar los diferentes cortes de ángulo.
http://forums.alliedmods.net/showthread.php?t=196349

Last edited by Swaycher; 04-17-2012 at 19:27.
Swaycher is offline
Send a message via MSN to Swaycher Send a message via Skype™ to Swaycher
Geoslide
Senior Member
Join Date: Jun 2011
Location: Chilean player
Old 04-17-2012 , 20:47   Re: HUD TITILAN [AYUDA]
#8

http://www.amxmodx.org/funcwiki.php?go=func&id=28

Lee las reglas como se te indico anteriorménte porfavor, de forma contraria puedes ser sancionado.
__________________
Basebuilder V6 - plugin for sale
Jailbreak V6 - plugin for sale
more plugins in progress ...

Geoslide ?
Geoslide is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode