AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   give a weapon ( TFC ) (https://forums.alliedmods.net/showthread.php?t=28021)

Ramono 05-05-2006 11:49

give a weapon ( TFC )
 
How to give a weapon in TFC

This:
Code:
user_has_weapon(id, TFC_WPN_AC,1) give_item (id,"TFC_WPN_AC")
doesnt work,
And this:
Code:
give_item (id,TFC_WPN_AC)
makes a compile error

Geesu 05-05-2006 12:13

you need to give the weapon name... i.e.

weapon_somenamehere

Ramono 05-05-2006 19:10

I cant find them for tfc, ive tryed everything...
Soes anyone know them?

v3x 05-05-2006 20:43

The second parameter requires a string, so put quotes around it.

I've gathered up what I believe are the weapon names:
  • tf_weapon_ac
  • tf_weapon_autorifle
  • tf_weapon_axe
  • tf_weapon_flamethrower
  • tf_weapon_gl
  • tf_weapon_ic
  • tf_weapon_knife
  • tf_weapon_medikit
  • tf_weapon_ng
  • tf_weapon_pl
  • tf_weapon_railgun
  • tf_weapon_rpg
  • tf_weapon_sniperrifle
  • tf_weapon_spanner
  • tf_weapon_superng
  • tf_weapon_supershotgun
  • tf_weapon_tranq
Example usage:
Code:
give_item(id , "tf_weapon_rpg");


All times are GMT -4. The time now is 05:04.

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