Raised This Month: $ Target: $400
 0% 

[ H3LP ] Multiple items register?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-04-2017 , 20:34   Re: [ H3LP ] Multiple items register?
Reply With Quote #7

Code:
new g_itemid[3] ... for (new i = 0; i < sizeof (szWeapons); i++) {         g_itemid[i] = zp_register_extra_item(szWeapons[i][WeaponName], szWeapons[i][WeaponCost], ZP_TEAM_HUMAN);         RegisterHam(Ham_Item_Deploy, szWeapons[i][WeaponIndex], "fw_Item_Deploy_Post", 1); }

Code:
public fw_Item_Deploy_Post(entity) {     if (!pev_valid(entity))         return HAM_IGNORED;     new id = get_pdata_cbase(entity, 41, 4);         if (!is_user_alive(id))         return HAM_IGNORED;     for (new i = 0; i < sizeof (szWeapons); i++)     {         if (!g_has_item[id][i])             return HAM_IGNORED;         set_weapon_model(id, i);         client_print(id, print_chat, "Weapon Deploy: %s", szWeapons[i][WeaponName]);         break;     }     return HAM_IGNORED; }

I already had added.. I think you did not see that haha'. Any other idea?
__________________









Last edited by CrazY.; 04-04-2017 at 20:34.
CrazY. is offline
 



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:55.


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