AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   The Specialists 2.1...ava_ts.inc...ts_set_weapon_extr as() (https://forums.alliedmods.net/showthread.php?t=57813)

mysticssjgoku4 07-12-2007 04:22

The Specialists 2.1...ava_ts.inc...ts_set_weapon_extr as()
 
1 Attachment(s)
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"); }

Greenberet 07-12-2007 06:14

Re: The Specialists...ava_ts.inc...ts_set_weapon_extr as()
 
could it be, that you are using ts 3.0 and not ts 2.1?

mysticssjgoku4 07-12-2007 15:54

Re: The Specialists...ava_ts.inc...ts_set_weapon_extr as()
 
Quote:

Originally Posted by Greenberet (Post 502388)
could it be, that you are using ts 3.0 and not ts 2.1?

Nope

mysticssjgoku4 09-03-2007 14:05

Re: The Specialists 2.1...ava_ts.inc...ts_set_weapon_extr as()
 
[img]http://img403.**************/img403/1596/1188333019217sf9.jpg[/img]
[img]http://img403.**************/img403/1596/1188333019217sf9.jpg[/img]
[img]http://img403.**************/img403/1596/1188333019217sf9.jpg[/img]


All times are GMT -4. The time now is 21:24.

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