AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   detect last weapon (https://forums.alliedmods.net/showthread.php?t=222518)

anon12 08-03-2013 16:49

detect last weapon
 
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?

akcaliberg 08-03-2013 17:38

Re: detect last weapon
 
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

anon12 08-03-2013 18:52

Re: detect last weapon
 
would mind giving me an example? thnx

akcaliberg 08-03-2013 19:21

Re: detect last weapon
 
post your weapon menu and i will add that feature.


All times are GMT -4. The time now is 15:52.

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