Raised This Month: $32 Target: $400
 8% 

[ES] Problema Touch func_breakable


  
 
 
Thread Tools Display Modes
Author Message
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 08-31-2010 , 08:34   [ES] Problema Touch func_breakable
#1

Tengo un problema con el siguiente codigo:

Code:
new const ent_class[] = "entidad" public pfn_touch(toucher, touched) {     if(is_valid_ent(toucher))     {            static class[32]         entity_get_string(toucher, EV_SZ_classname, class, charsmax(class))                 if(equal(class, ent_class))         {             static Float:EndOrigin[3]             entity_get_vector(toucher, EV_VEC_origin, EndOrigin)                                 engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, EndOrigin, 0)             write_byte(TE_IMPLOSION) // TE id             engfunc(EngFunc_WriteCoord, EndOrigin[0]) // x             engfunc(EngFunc_WriteCoord, EndOrigin[1]) // y             engfunc(EngFunc_WriteCoord, EndOrigin[2]) // z             write_byte(128) // radius             write_byte(20) // count             write_byte(3) // duration             message_end()                         static classname[32]             entity_get_string(touched, EV_SZ_classname, classname, charsmax(classname))                 if(is_valid_ent(touched))             {                 if(equal(classname, "player"))                 {                     static owner                     owner = pev(toucher, pev_owner)                                         KillPlayer(touched, owner)                 }                 else if(equal(classname, "func_breakable"))                 {                     force_use(toucher, touched)                 }             }                         remove_entity(toucher)         }     } }

Problema: En el mapa de_dust2, cuando la entidad toca las cajas verdes donde se planta la C4, explotan las cajas pero se me pone la pantalla en blanco como si me flasheara -.-

Alguno tiene la solucion?

Gracias de antemano
__________________
alan_el_more is offline
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 08-31-2010 , 13:25   Re: [ES] Problema Touch func_breakable
#2

Creo que es por remove_entity(toucher) y no touched xd
Raddish is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 08-31-2010 , 16:38   Re: [ES] Problema Touch func_breakable
#3

Problema resuelto

Solucion:
PHP Code:
set_msg_block(get_user_msgid("ScreenFade"), BLOCK_ONCE
Cierrenlo por favor
__________________
alan_el_more 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 21:43.


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