View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 07-03-2014 , 17:45   Re: [CSGO] CSGO items - plugin
Reply With Quote #5

Quote:
Originally Posted by SynRobin View Post
The thing is that I'm trying to categories all knives as 1 knife so my code will be dynamic when new knifes comes to the game (I'm doing a rank system). The problem comes when you are trying to use ct's knife.
*Okej I can create a state that in the code that checks if the knife is ct_default_knife (hard coded - ugly)
*I could check if the variable contains word knife (all knife doesnt contains that word)
*I could check if the word contains the word knife if no then check knifeinventroy index and weapon victim died from with your plugin.
Ok, finally I get it
Didn't understand first where you did get that ct knife name.
Yes, seems not all event weapon name match with item name, bug.
Code:
event knife_t csgo items weapon_knife_t item_index 59
event knife_default_ct csgo items weapon_knife item_index 42
Here snip if you like use.
Spoiler

Last edited by Bacardi; 07-03-2014 at 17:46.
Bacardi is offline