Code:
if(pev(id, pev_maxspeed) != 1.0)
{
new ....
.... = it is not the problem....
if (....)
{
static Float:originF[3]
pev(id, pev_origin, originF)
// Colored Aura
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_DLIGHT) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
write_byte(13) // radius asdasdasd
write_byte(255) // r
write_byte(0) // g
write_byte(0) // b
write_byte(2) // life
write_byte(0) // decay rate
message_end()
// Particle Burst
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_PARTICLEBURST) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
write_short(20) // radius
write_byte(60) // color
write_byte(3) // duration (will be randomized a bit)
message_end()
}
else if (....)
{
static Float:originF[3]
pev(id, pev_origin, originF)
// Colored Aura
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_DLIGHT) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
write_byte(13) // radius asdasdasd
write_byte(255) // r
write_byte(112) // g
write_byte(40) // b
write_byte(2) // life
write_byte(0) // decay rate
message_end()
}
else if (....)
{
static Float:originF[3]
pev(id, pev_origin, originF)
// Colored Aura
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_DLIGHT) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
write_byte(13) // radius asdasdasd
write_byte(255) // r
write_byte(255) // g
write_byte(0) // b
write_byte(2) // life
write_byte(0) // decay rate
message_end()
}
else if (....)
{
static Float:originF[3]
pev(id, pev_origin, originF)
// Colored Aura
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_DLIGHT) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
write_byte(13) // radius asdasdasd
write_byte(0) // r
write_byte(255) // g
write_byte(0) // b
write_byte(2) // life
write_byte(0) // decay rate
message_end()
}
else
{
static Float:originF[3]
pev(id, pev_origin, originF)
// Colored Aura
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_DLIGHT) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
write_byte(13) // radius asdasdasd
write_byte(0) // r
write_byte(255) // g
write_byte(0) // b
write_byte(2) // life
write_byte(0) // decay rate
message_end()
}
the last else TE_DLIGHT isnīt working...i just was asking why...+k if you help me