Raised This Month: $ Target: $400
 0% 

[HELP] Better description of some natives


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-04-2017 , 14:03   Re: [HELP] Better description of some natives
Reply With Quote #1

Code:
 /* Returns all carried weapons as bit sum. Gets  *  also theirs indexes.  * Note that num is incremental - if you pass 0, you get  *  32 weapons towards the total.  Afterwards, num will  *  will contain the number of weapons retrieved.  * However, subsequent calls to get_user_weapons() will  *  return the next batch of weapons, in case the mod  *  supports more than 32 weapons.  * This means to call get_user_weapons() on the same  *  inputs twice, you must reset num to 0 to get the  *  original output again.  */ native get_user_weapons(index,weapons[32],&num);

Code:
/**   * Returns the weapon id, otherwise 0 when no id found.  * The weapon name is case sensitive, and has the weapon_* form.  */ native get_weaponid(const name[]);

get_user_weapons returns every weapon player owns as bitsum (1<<CSW_KNIFE) and get_weaponid returns the weapon ID (CSW_KNIFE)
__________________
edon1337 is offline
Old 04-04-2017, 14:15
EFFx
This message has been deleted by EFFx. Reason: ,
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 17:54.


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