Raised This Month: $ Target: $400
 0% 

AWP with 1 bullet


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-26-2021 , 06:35   Re: AWP with 1 bullet
Reply With Quote #11

a safety stock for such thing since give_item might fail returning weapon entity index.

PHP Code:

stock give_player_weapon
(id, const weaponname[], const iClip)
{
   new 
ent_ind give_item(idweaponname);
   if(
ent_ind <= 0ent_ind find_ent_by_owner(-1weaponnameid);

   if(
pev_valid(ent_ind))
   {
      
cs_set_weapon_ammo(ent_indiClip);
   }

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-26-2021 at 10:54.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



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 10:03.


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