Raised This Month: $ Target: $400
 0% 

ts_getuserwpn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 08-21-2005 , 09:36   ts_getuserwpn
Reply With Quote #1

Well. I was wondering, how do I get the GUNID as well?
It gives me this.

Code:
   // Get some of their current settings    new currclip, currammo, currmode, currextra;    ts_getuserwpn(id,currclip,currammo,currmode,currextra);    set_pdata_int(tsgun,tsweaponoffset[weapon],ammo); // set their ammo    // Grenade or knife, set clip    if(weapon == 24 || weapon == 25 || weapon == 35) {      set_pdata_int(tsgun,41,ammo); // special clip storage      set_pdata_int(tsgun,839,ammo); // more special clip storage      currclip = ammo; // change what we send to WeaponInfo      ammo = 0; // once again, change what we send to WeaponInfo    }    else { // Not a grenade or knife, set ammo      set_pdata_int(tsgun,850,ammo); // special ammo storage    }

I mean I got it to give me the clip, ammo, mode, extras. IT works fine, but how do I get it to give me the gunid, seperately? Thanks.
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 08-21-2005 , 13:29  
Reply With Quote #2

The native returns the gun id.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 08-21-2005 , 14:13  
Reply With Quote #3

Quote:
Originally Posted by Twilight Suzuka
The native returns the gun id.
In English please?
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
DahVid
Senior Member
Join Date: Jun 2005
Old 08-21-2005 , 14:28  
Reply With Quote #4

The number of the gun, glock 18 is 1... ETC.
If you need the numbers use google or some shit. Otherswise open up ts_fgd.fgd and look around.
DahVid is offline
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 08-21-2005 , 14:40  
Reply With Quote #5

Quote:
Originally Posted by DahVid
The number of the gun, glock 18 is 1... ETC.
If you need the numbers use google or some shit. Otherswise open up ts_fgd.fgd and look around.
You obviously do not get what I am trying to do here. I'm trying to get the gunid of the weapon the player is holding.
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-21-2005 , 15:12  
Reply With Quote #6

ts_getuserwpn (the native) is equal to (as in returns) the gun they are holding.

Code:
new currweapon = ts_getuserwpn(...);
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 08-21-2005 , 15:17  
Reply With Quote #7

Quote:
Originally Posted by XxAvalanchexX
ts_getuserwpn (the native) is equal to (as in returns) the gun they are holding.

Code:
new currweapon = ts_getuserwpn(...);
Thank you VERY MUCH!
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 08-22-2005 , 04:51  
Reply With Quote #8

I said that already....
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 08-22-2005 , 08:49  
Reply With Quote #9

Quote:
Originally Posted by Twilight Suzuka
I said that already....
I know, but I didn't quite understand what you meant, I'm kind of new, Now I have learned what a native is . Thank You.
__________________

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 14:34.


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