Code:
public FireInTheHole(id){
if(hastrail[id] == true)
return PLUGIN_CONTINUE
new id = read_data(1)
set_task(0.1, "grenid", id)
return PLUGIN_HANDLED
}
public grenid(id){
new string[32], hegrenid = 0, smokeid = 0, flashid = 0
do{
hegrenid = get_grenade_id(id, string, 31, hegrenid)
}
while (hegrenid && hasHENADE[id] == true)
if (hegrenid && hasHENADE[id] == true){
message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
write_byte( TE_BEAMFOLLOW )
write_short(hegrenid) // entity
write_short(sprite) // model
write_byte( 10 ) // life
write_byte( 5 ) // width
write_byte( 255 ) // r, g, b
write_byte( 0 ) // r, g, b
write_byte( 0 ) // r, g, b
switch (random_num(0,2)){
case 0:
write_byte( 64 ) // brightness
case 1:
write_byte( 128 ) // brightness
case 2:
write_byte( 192 ) // brightness
}
message_end() // move PHS/PVS data sending into here (SEND_ALL, SEND_PVS, SEND_PHS)
}
do{
smokeid = get_grenade_id(id, string, 31, smokeid)
}
while (smokeid && hasSMOKENADE[id] == true)
if (smokeid && hasSMOKENADE[id] == true){
message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
write_byte( TE_BEAMFOLLOW )
write_short(smokeid) // entity
write_short(sprite) // model
write_byte( 10 ) // life
write_byte( 5 ) // width
write_byte( 0 ) // r, g, b
write_byte( 255 ) // r, g, b
write_byte( 0 ) // r, g, b
switch (random_num(0,2)){
case 0:
write_byte( 64 ) // brightness
case 1:
write_byte( 128 ) // brightness
case 2:
write_byte( 192 ) // brightness
}
message_end() // move PHS/PVS data sending into here (SEND_ALL, SEND_PVS, SEND_PHS)
}
do{
flashid = get_grenade_id(id, string, 31, flashid)
}
while (flashid && hasFLASHNADE[id] == true)
if (flashid && hasFLASHNADE[id] == true){
message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
write_byte( TE_BEAMFOLLOW )
write_short(flashid) // entity
write_short(sprite) // model
write_byte( 10 ) // life
write_byte( 5 ) // width
write_byte( 255 ) // r, g, b
write_byte( 255 ) // r, g, b
write_byte( 255 ) // r, g, b
switch (random_num(0,2)){
case 0:
write_byte( 64 ) // brightness
case 1:
write_byte( 128 ) // brightness
case 2:
write_byte( 192 ) // brightness
}
message_end() // move PHS/PVS data sending into here (SEND_ALL, SEND_PVS, SEND_PHS)
}
}
i have another fireinthehall but it's diffrent, it might be cuz of it i dunno