Ok i have create this but plzz help if anyone can
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#include <fun>
public plugin_init()
{
register_plugin( "D2 texture abuse fix", "1.0", "Simo123" );
new map[32];
get_mapname(map, 31);
if ( equal(map, "de_dust2") )
{
new Ent = create_entity( "info_target" );
entity_set_model( Ent, "models/w_ak47.mdl" );
entity_set_origin( Ent, Float:{1280.922973, 1696.530151, 44.251724} );
entity_set_vector( Ent, EV_VEC_angles, Float:{0, 0, 0} );
}
}
public client_PreThink(id)
{
new button = get_user_button(id)
if (button & IN_USE) //how can i set here if entity_set_origin( Ent, Float:{1280.922973, 1696.530151, 44.251724} ) to give me ak47
{
give_item(id, "weapon_ak47")
}
}
__________________