AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   is there a way to tell all of my weapons (https://forums.alliedmods.net/showthread.php?t=162117)

JeweL` 07-15-2011 07:13

is there a way to tell all of my weapons
 
i need a script for telling my weapons,

with get_user_weapon; i am getting weapon what he use
it looks like: "I have a m4a1"

but i want to check all of his weapons
i want to write: "I have m4a1 , deagle , knife"

how i can do it?

and sorry for my poor english :)

drekes 07-15-2011 07:32

Re: is there a way to tell all of my weapons
 
http://www.amxmodx.org/funcwiki.php?...pons&go=search

JeweL` 07-15-2011 07:39

Re: is there a way to tell all of my weapons
 
Quote:

Originally Posted by drekes (Post 1511109)

i tried it but it didnt show weapon names.. can you help me with an example?

Exolent[jNr] 07-15-2011 09:19

Re: is there a way to tell all of my weapons
 
It gives you an array of weapon indexes.
Use get_weaponname() with a weapon index to get the weapon name.


All times are GMT -4. The time now is 01:10.

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