ummm i know all of that.. did u read wat i posted??? i am showing u my problem and where it is.. wat i am asking is if u could help me figure out how to fix it
here i make it easier ill give u the whole code its been modify from someone elses code that he needed fixed and the reason i used it is because i want to learn how to make the lightning. for a plugin i am making .
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#include <amxconst>
new light
public plugin_init()
{
register_plugin("Unknown", "0.5", "Garrett")
register_clcmd("say givemegod", "saygod", ADMIN_KICK, "-gives player godmode")
}
public plugin_precache()
{
light = precache_model("sprites/lgtning.spr")
return PLUGIN_HANDLED
}
public saygod(id)
{
if(get_user_flags(id)&&ADMIN_KICK)
set_user_godmode(id)
return PLUGIN_HANDLED
else (!get_user_flags(id)&&ADMIN_KICK)
client_print(id, print_chat, "[AMXX] HAHAHA nice try!")
new origin[33][3]
get_user_origin(id,origin[id])
message_begin(MSG_ALL,SVC_TEMPENTITY)
write_byte(7) // number of tempevent
write_coord(origin[id][0]) // x coord
write_coord(origin[id][1]) // y coord
write_coord(origin[id][2]) // z coord
write_coord(origin[id][0]) // x2 coord
write_coord(origin[id][1]) // y2 coord
write_coord(origin[id][2]) + 10 // z2 coord
write_byte(2) // life
write_byte(5) // width
write_byte(5) // amplitude
write_short(light) // sprite index
message_end()
return PLUGIN_HANDLED
}
__________________