Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
In Key, you put the weapon's classname (e.g. weapon_awp, weapon_knife, etc...). Make sure to properly put the name or nothing will happen.
In Value, you put the amount of ammo you want to give to the weapon. Try not to use ridiculous values and stick with the original values you get when buying the weapon.
Click ok, turn smart edit back on, apply all, compile and you should be good to go. It is that easy.
And put a game_player_equip with weapon_knife, that dont have the flag Use Only. And I think there is another new flag in csgo sdk to strip player everyround and give them the weapon, so check that one.
On round start, everyone get a knife and nothing else.
To strip the player after he shoot something, use a player_weaponstrip (it might not be in the sdk directly as it's an Half life 2 entity).
Put any point_entity in the map. Change the classname. With SmartEdit off add a key targetname and a value what_u_want
And on your button or whatever you want, you call the player_weaponstrip (with its name) and you use the input StripWeaponAndSuit
OnMapSpawn
*TheNameOfTheEntity*
Command
bot_knives_only 1
0.00
If none of these work, there is a good chance that you need to quickly toggle sv_cheats on then off.
If it is the case, then:
OnMapSpawn
*TheNameOfTheEntity*
Command
sv_cheats 1
0.00
OnMapSpawn
*TheNameOfTheEntity*
Command
bot_knives_only 1
0.01
OnMapSpawn
*TheNameOfTheEntity*
Command
sv_cheats 0
0.02