oaaron99

Untitled

Dec 5th, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. int entity = GetEntPropEnt(iClient, Prop_Send, "m_hMyWearables");
  2.  
  3. bool new_glove = false;
  4. if (entity == -1)
  5. {
  6. entity = CreateEntityByName("wearable_item");
  7. DispatchSpawn(entity);
  8. new_glove = true;
  9. }
  10.  
  11. PrintToChat(iClient, "Glove Index: %i", entity);
  12.  
  13. SetEntProp(entity, Prop_Send, "m_iItemDefinitionIndex", 5034);
  14. SetEntProp(entity, Prop_Send, "m_nFallbackPaintKit", 10009);
  15.  
  16. PrintToChat(iClient, "m_iItemDefinitionIndex: %i | m_nFallbackPaintKit: %i", GetEntProp(entity, Prop_Send, "m_iItemDefinitionIndex"), GetEntProp(entity, Prop_Send, "m_nFallbackPaintKit"));
  17.  
  18. if (new_glove)
  19. SetEntPropEnt(iClient, Prop_Send, "m_hMyWearables", entity);
  20.  
  21. entity = GetEntPropEnt(iClient, Prop_Send, "m_hMyWearables");
  22.  
  23. PrintToChat(iClient, "New Glove Index: %i", entity);
Advertisement
Add Comment
Please, Sign In to add comment