Raised This Month: $ Target: $400
 0% 

Attach Sprite on model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
sanaell
Senior Member
Join Date: May 2004
Location: SamutPrakarn Thailand
Old 07-14-2004 , 11:21   Help help helppppppp
Reply With Quote #2

Code:
new itemClassName[MAX_NAME_LENGTH], playerClassname[MAX_NAME_LENGTH],itemicon[32]         new Float:g_origin[3]         #if defined _amxmodx_included             entity_get_string(tid, EV_SZ_classname, itemClassName, MAX_NAME_LENGTH-1);             entity_get_string(id, EV_SZ_classname, playerClassname, MAX_NAME_LENGTH-1)             entity_get_vector(tid, EV_VEC_origin, g_origin);         #else             Entvars_Get_String(tid, EV_SZ_classname, itemClassName, MAX_NAME_LENGTH-1);             Entvars_Get_String(id, EV_SZ_classname, playerClassname, MAX_NAME_LENGTH-1)             Entvars_Get_Vector(tid,EV_VEC_origin, g_origin);         #endif         #if defined _amxmodx_included             itemicon[tid] = entity_get_int(tid, EV_INT_iuser4)         #else             itemicon[tid] = Entvars_Get_Int(tid, EV_INT_iuser4)         #endif         new bool:showitem=false         new item_icon         if(equal(itemClassName,"wc3item1")){         switch(itemicon[tid]){               case ANKH:    {item_icon=ankh;}                 case BOOTS:     {item_icon=boots;}                 case CLAWS:     {item_icon=claws;}                 case CLOAK:     {item_icon=cloak;}                 case MASK:  {item_icon=mask;}                 case IMMUNITY:  {item_icon=immunity;}                 case FROST:     {item_icon=frost;}                 case HEALTH:    {item_icon=healthitem;}             }         showitem = true         }         if(equal(itemClassName,"wc3item2")){             switch(itemicon[tid]){                 case RESPAWN:   {item_icon=respawn;}                 case PROTECTANT:    {item_icon=protectant;}                 case HELM:  {item_icon=helm;}                 case CAT:   {item_icon=cat;}                 case FEATHER:   {item_icon=feather;}                 case INFERNO:   {item_icon=inferno;}                 case REGEN:     {item_icon=regen;}                 case CHAMELEON:     {item_icon=chameleon;}                 case MOLE:  {item_icon=mole;}             }                 showitem = true         }         if(showitem){             message_begin( MSG_ONE, SVC_TEMPENTITY, { 0, 0, 0 }, id )             write_byte(17);             write_coord( floatround(g_origin[0]) + 50 );             write_coord( floatround(g_origin[1]) + 50 );             write_coord( floatround(g_origin[2]) + 50 );             write_short(item_icon);             write_byte(10);             write_byte(128);             message_end();          }

Why that don t work !
__________________
[email protected]
The Source of Pain is the Pain of Source
sanaell is offline
Send a message via MSN to sanaell
 



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:50.


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