•  
     

KP Tiro explode Muito bom para 4FUN

APROVADOOO !

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#MONTILAAAXD


public plugin_init()
{
register_plugin("Killing Particles", "1.01", "metallicawOw")

// Hams
RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")

// Enable/Disable the plugin
gCKP = register_cvar("gc_kp_enable", "1")
}

public fw_PlayerKilled(victim, attacker, shouldgib)
{
if(!is_user_connected(attacker) || !is_user_connected(victim) || attacker == victim || !attacker)
return HAM_IGNORED;

if(get_pcvar_num(gCKP))
{
static Float:FOrigin3[3]
pev(victim, pev_origin, FOrigin3)

engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, FOrigin3, 0)
write_byte(TE_IMPLOSION)
engfunc(EngFunc_WriteCoord, FOrigin3[0])
engfunc(EngFunc_WriteCoord, FOrigin3[1])
engfunc(EngFunc_WriteCoord, FOrigin3[2])
write_byte(200)
write_byte(100)
write_byte(5)
message_end()

engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, FOrigin3, 0)
write_byte(TE_PARTICLEBURST) // TE id
engfunc(EngFunc_WriteCoord, FOrigin3[0]) // x
engfunc(EngFunc_WriteCoord, FOrigin3[1]) // y
engfunc(EngFunc_WriteCoord, FOrigin3[2]) // z
write_short(50) // radius
write_byte(72) // color
write_byte(6) // duration (will be randomized a bit)
message_end()
}
return PLUGIN_HANDLED
}
Não tem Permissão para ver os ficheiros anexados nesta mensagem.