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

[ES] Efecto al plantar c4


  
 
 
Thread Tools Display Modes
Author Message
vazmar
Veteran Member
Join Date: Apr 2009
Old 01-08-2010 , 01:10   [ES] Efecto al plantar c4
#1

Em... este code es de hace un tiempo.. haber quien lo mira y lo fixea xD..

PHP Code:
#include <amxmodx>
#include <engine>

new Explode

public plugin_init() 
{    
    
register_plugin("PLUGIN""1.0""AUTOR")
    
register_logevent("LogEvent_BombPlanted" "2=Planted_The_Bomb")
}

public 
plugin_precache() 
    
Explode precache_model("sprites/flame.spr")


public 
LogEvent_BombPlanted()
{
    new 
ent create_entity("grenade")
    new 
Origin[3]
    new 
Float:Vector[3]
    
entity_get_vector(entEV_VEC_originVector)
    
FVecIVec(VectorOrigin)
    
    
/*Origin[0] = floatround(Vector[0])
    Origin[1] = floatround(Vector[1])
    Origin[2] = floatround(Vector[2])*/
    
    
    
message_begin(MSG_BROADCASTSVC_TEMPENTITYOrigin)
    
write_byte(TE_BEAMCYLINDER)
    
write_coord(Origin[0])
    
write_coord(Origin[1])
    
write_coord(Origin[2])
    
write_coord(Origin[0])
    
write_coord(Origin[1])
    
write_coord(Origin[2] + 30)
    
write_short(Explode)
    
write_byte(0)
    
write_byte(0)
    
write_byte(5)
    
write_byte(2)
    
write_byte(2)
    
write_byte(255)    
    
write_byte(85)   
    
write_byte(0)    
    
write_byte(255)
    
write_byte(6)
    
message_end()  

vazmar is offline
 



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 15:24.


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