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

[ES] Duda con ScreenFade


  
 
 
Thread Tools Display Modes
Author Message
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 11-01-2010 , 00:45   [ES] Duda con ScreenFade
#1

Al tipear en say: test, el efecto se realiza como deberia, pero no tendria que llamar a la funcion del ScreenFade y mostrar el print ?
PHP Code:
public plugin_init()
{
    
register_plugin("_""0.1""Shinoda")
    
    
register_clcmd("say test""cmdTest")

    
register_message(get_user_msgid("ScreenFade"), "MessageScreenFade")
}

public 
MessageScreenFade(abc)
{
    
client_print(cprint_chat"DEBUG")
}

public 
cmdTest(id)
{
    
UTIL_ScreenFadeBuild(55255,0,0,255FFADE_IN)
    
UTIL_ScreenFadeWrite(id)
    
    return 
1

__________________
Oh hell no this shit is awesome !!!

Last edited by shinoda; 11-01-2010 at 00:57.
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 11-01-2010 , 10:52   Re: [ES] Duda con ScreenFade
#2

solo es llamado cuando se es flasheado por la fb y cuando se respawnea(eso me paresio raro).
Eso en el cs,en el hl nose xD.
__________________
Destro- is offline
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 11-01-2010 , 11:07   Re: [ES] Duda con ScreenFade
#3

Si, bueno en mi caso, el message es llamado cuando se reproduce el efecto. Al escribir 'say test' hace ScreenFade pero el message no deberia ser llamado y mostrar el print ???.

PD: El message solo es llamado cuando se reproduce el efecto (propio del mapa) :-/
__________________
Oh hell no this shit is awesome !!!
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 12-08-2010 , 08:36   Re: [ES] Duda con ScreenFade
#4

Perdon por revivir :S.
Si se usa emessage_begin para el ScreenFade funciona.
__________________
Destro- is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 12-08-2010 , 10:14   Re: [ES] Duda con ScreenFade
#5

Cuando tu mismo ejecutas un message, no es llamado por las fwds. Claramente que si razonas sabras todos los errores que se causarian si los msgs fueran asi, por eso hay metodo opcional para hacer que las fwds se llamen.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 12-08-2010 , 10:57   Re: [ES] Duda con ScreenFade
#6

ajam.
PHP Code:
/* These are the same as above, except that the messages sent
 *  are also sent to all other plugins and Metamod plugins.
 * This means that if you send one of these messages, other plugins will
 *  be notified, which was previously impossible.  
 * BE CAREFUL! Using these incorrectly, or not for their intended purpose,
 *  could cause infinite recursion or something just as bad. 
 * NOTE! These natives are experimental.
 */ 
__________________
Destro- is offline
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 12-08-2010 , 12:15   Re: [ES] Duda con ScreenFade
#7

Ya lo habia solucionado , gracias de todas formas.
__________________
Oh hell no this shit is awesome !!!
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
 



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 16:48.


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