AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get Weapon (https://forums.alliedmods.net/showthread.php?t=321808)

By.King 03-01-2020 04:40

Get Weapon
 
How do i get weapon info?
I want do is change something in the weapon model with set_entvar

thEsp 03-01-2020 09:40

Re: Get Weapon
 
http://amxmodx.org/api/amxmodx/get_weaponid
http://amxmodx.org/api/amxmodx/get_weaponname
http://amxmodx.org/api/cstrike_const...-weapons-in-cs
http://amxmodx.org/api/fakemeta/set_pev
http://amxmodx.org/api/fakemeta_const#used-with-dllfunc

By.King 03-01-2020 10:19

Re: Get Weapon
 
I tried these but I couldn't

OciXCrom 03-01-2020 13:49

Re: Get Weapon
 
Show the code(s) you tried.

By.King 03-02-2020 05:12

Re: Get Weapon
 
I don't remember but I need a sample code.

thEsp 03-02-2020 08:30

Re: Get Weapon
 
Quote:

Originally Posted by By.King (Post 2685571)
I don't remember but I need a sample code.

Just what are you trying to do? Nobody here is a mind reader!

By.King 03-02-2020 14:31

Re: Get Weapon
 
when we create an entity, we can use it directly, for example:
new Entity = create_entity ("Entity");
set_pev(Entity, pev_model, Model);

but how do we get the gun like Entity?


All times are GMT -4. The time now is 00:33.

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