Raised This Month: $ Target: $400
 0% 

The Specialists 2.1...ava_ts.inc...ts_set_weapon_extr as()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 07-12-2007 , 04:22   The Specialists 2.1...ava_ts.inc...ts_set_weapon_extr as()
Reply With Quote #1

In this Include File.... the function below doesn't work... Anyone have any idea to fix this?

ts_set_weapon_extras(id,gunid,TSA_SILENCER,1, 1)

There are 4 different types of addons: Silencer, Scope, Laser, Flashlight

Silencer & Scope - Does not function at all.

Laser & Flashlight- Does place a beam on the weapon, but not permanently. Toggling this addon only destroys it.

For every addon, if you try and place another addon on top of another, the other disappears in replace of the new addon. EVEN if you try and combine addon ID’s. :S?

---
Code I used to experiment with this:

Code:
new clip, ammo, mode, extra, extra2         if(ts_get_weapon_info(id,gunid,clip,ammo,mode,extra,extra2) == 1)         {             new dif = extra2-TSA_SCOPE             if(dif >= 0 && dif <= 7) client_print(id,print_chat,"[GunAccessories] You already have a scope on this weapon.")             else             {                 ts_set_weapon_extras(id,gunid,TSA_SCOPE,1,1)                 client_print(id,print_chat,"[GunAccessories] You put a scope onto your weapon.")             }         } else { client_print(id,print_chat,"Failed"); }
Attached Files
File Type: inc ava_ts.inc (20.2 KB, 152 views)
__________________


Last edited by mysticssjgoku4; 07-12-2007 at 15:59.
mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 07-12-2007 , 06:14   Re: The Specialists...ava_ts.inc...ts_set_weapon_extr as()
Reply With Quote #2

could it be, that you are using ts 3.0 and not ts 2.1?
__________________
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 07-12-2007 , 15:54   Re: The Specialists...ava_ts.inc...ts_set_weapon_extr as()
Reply With Quote #3

Quote:
Originally Posted by Greenberet View Post
could it be, that you are using ts 3.0 and not ts 2.1?
Nope
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 09-03-2007 , 14:05   Re: The Specialists 2.1...ava_ts.inc...ts_set_weapon_extr as()
Reply With Quote #4

[img]http://img403.**************/img403/1596/1188333019217sf9.jpg[/img]
[img]http://img403.**************/img403/1596/1188333019217sf9.jpg[/img]
[img]http://img403.**************/img403/1596/1188333019217sf9.jpg[/img]
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
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 21:24.


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