Raised This Month: $51 Target: $400
 12% 

detect last weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anon12
Member
Join Date: Aug 2013
Old 08-03-2013 , 16:49   detect last weapon
Reply With Quote #1

I have 2 plugin 1 Menu plugin and a weapon plugin.

My question is, how can I detect the last weapon used by that person from a menu?
anon12 is offline
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 08-03-2013 , 17:38   Re: detect last weapon
Reply With Quote #2

create an array and store the chosen weapons on your menu. I think you want to add a "remember my choice" feature ?

for example:

new weapons[33][2] // first will store the indexes of players, second will store the indexes of weapons

weapons[id][0] = CSW_AK47 // primary
weapons[id][1] = CSW_DEAGLE // secondary

Last edited by akcaliberg; 08-03-2013 at 17:41.
akcaliberg is offline
anon12
Member
Join Date: Aug 2013
Old 08-03-2013 , 18:52   Re: detect last weapon
Reply With Quote #3

would mind giving me an example? thnx
anon12 is offline
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 08-03-2013 , 19:21   Re: detect last weapon
Reply With Quote #4

post your weapon menu and i will add that feature.
akcaliberg 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 20:26.


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