Raised This Month: $ Target: $400
 0% 

diablo new item


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zawodowiec
Junior Member
Join Date: Aug 2008
Old 05-29-2009 , 04:25   diablo new item
Reply With Quote #1

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])
        }
zawodowiec is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode