Quote:
Originally Posted by versatile_bfg
If you want it in that format you may want to look at this:
StrEqual
PHP Code:
if (StrEqual(weapon, "weapon_ak47"))
{
weapon = "AK-47";
}
But if 'ak47' is fine you can just:
ReplaceString
PHP Code:
ReplaceString(weapon, sizeof(weapon), "weapon_", "", false);
|
Thanks for the reply, but I don't want it to do like this, why ? because sometimes valve add new weapons/knives to the game, I don't want to update it everytime, I was thinking if I can get the full name of the item, like when you spectating someone haves skin for example, it'll show you: Karambit | Fade or something like that, I want to get that full name ;)