Raised This Month: $ Target: $400
 0% 

Solved Get weapon's entity id, from weapon ID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-11-2020 , 15:37   Re: Get weapon's entity id, from weapon ID
Reply With Quote #1

previous method was much better you just now ruined it.

if it crashes thats means there's something going wrong in the code, debug and test when the crash acquires.


if you want to loop all players alive use this method its much faster

Code:
new players[32], pnum; get_players(players, pnum, "ah"); // flag a to loop alive clients only, flag h is to skip HLTV for(new i ; i < pnum; i++ ) {    new player_index = players[ i ]; }

also you need to show what's the body of fm_strip_user_gun(id, weapons[i]); and how it works...
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 12-11-2020 at 15:42.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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