i currently trying to make an explosion that works with sprite one with fire explosion the other is frost explosion but while making the frost explosion this problem happens in the server:-
Code:
Host_Error: CL_ParseServerMessage: Illegible server message - svc_bad
while here is the frost explosion function:-
Code:
stock Create_FR_EXPLOSION( const Float:iOrigin[3] )
{
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
write_byte (TE_SPRITE) // TE ID
engfunc(EngFunc_WriteCoord, iOrigin[0])
engfunc(EngFunc_WriteCoord, iOrigin[1])
engfunc(EngFunc_WriteCoord, iOrigin[2] + 50.0)
write_short( Sprite_Frost ) // Sprite index
write_byte( 100 ) // Size of sprite
write_byte( 20 )
write_byte( 0 )
message_end( )
}
stock CreateFrost( iAttacker, iEntity, Float: fHealth ) {
new Float: fOrigin[ 3 ], iOrigin[ 3 ];
entity_get_vector( iEntity, EV_VEC_origin, fOrigin );
FVecIVec( fOrigin, iOrigin );
Create_FR_EXPLOSION( iOrigin );
}