Raised This Month: $ Target: $400
 0% 

give a weapon ( TFC )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 05-05-2006 , 11:49   give a weapon ( TFC )
Reply With Quote #1

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
__________________
Um, hi.
Ramono is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 05-05-2006 , 12:13  
Reply With Quote #2

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

weapon_somenamehere
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 05-05-2006 , 19:10  
Reply With Quote #3

I cant find them for tfc, ive tryed everything...
Soes anyone know them?
__________________
Um, hi.
Ramono is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-05-2006 , 20:43  
Reply With Quote #4

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");
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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