I have worship I have the problem the code from new itemem itd but something does not walk me someone could by see ??
Code:
new esp[33]
new white
public esploop(id)
{
if(!is_user_alive(id))
return PLUGIN_CONTINUE
if(esp[id] > 0)
{
for(new a = 1; a <= get_maxplayers(); a++)
{
if(is_user_alive(a))
{
if(cs_get_user_team(id) != cs_get_user_team(a))
{
if((a != id))
{
new vec1[3]
get_user_origin(a, vec1, 0)
message_begin(MSG_ONE, SVC_TEMPENTITY, vec1, id)
write_byte(21)
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2] - 35)
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2] + 1200)
write_short(white)
write_byte(0)//startframe
write_byte(1)//framerate
write_byte(6)//3 life 2
write_byte(8)//width 16
write_byte(1)//noise
write_byte(100)//r
write_byte(100)//g
write_byte(255)//b
write_byte(192)//brightness
write_byte(0)//speed
message_end()
}
}
}
}
}
return PLUGIN_CONTINUE
}
public firstaid1(id)
{
if(is_user_alive(id))
{
if(esp[id] > 0)
{
if(esp[id] > 1)
set_task(3.0, "esploop", id, "", 0, "b")
}
}
return PLUGIN_CONTINUE
}
firstaid1(id) add to public ResetHUD(id)
the example item:
}
case 102:
{
player_item_name[id] = "test"
player_item_id[id] = rannum
esp[id] = 1
show_hudmessage (id, "You found the object : %s :: test ",player_item_name[id])
}