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_AddPlayerItem, id, entID)
__________________