Raised This Month: $ Target: $400
 0% 

Ham_AddPlayerItem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 09-23-2012 , 15:01   Ham_AddPlayerItem
Reply With Quote #1

I'm trying to give an item to a player when they spawn.
fun module's give_item prints a message. I don't want this to happen.

So then i saw hamsandwich's Ham_AddPlayerItem and i'm wondering what the parameters are.

Quote:
/**
* Description: Adds an item to the player's inventory.
* Forward params: function(this, idother);
* Return type: Integer.
* Execute params: ExecuteHam(Ham_AddPlayerItem, this, idother);
*/
Ham_AddPlayerItem,
what is this and idother?
My assumption is that this is the player to add the item to and idother is the ID of the item to give. Is this correct?

PHP Code:
new entID get_weaponid(szOtherAutoWeapons[i])
ExecuteHam(Ham_AddPlayerItemidentID
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 09-23-2012 at 15:02.
Liverwiz 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 08:16.


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