Gifts. 'Nuff said. Not much yet, I hope a few people will code plugins for it.
CVars
sm_gifts_lifetime - Lifetime of the gifts Def: 10.0
sm_gifts_chance - Chance of dropping gifts Def: 0.60
sm_gifts_model - Model of the gift - Def: mod dependant
Stuff for developers
PHP Code:
native Gifts_RegisterPlugin(Function:callback);
native Gifts_RemovePlugin();
native Gifts_SetClientCondition(client, GiftConditions:clientState);
native Gifts_GetClientCondition(client);
native Gifts_SpawnGift(Function:callback, const String:model[], Float:lifetime, Float:position[3], data, owner=0);
There's a test plugin in the attachments.
Stuff for server admins
Checks addons, although there's not much yet.
Addons
I'll post any gift plugin here, just PM me with URL.
Changelog
2.4 - Lot of fixes
2.3 - Fixed a lame bug hopefully
2.2 - Fixed a possible bug
2.1 - Some small changes
2.0 - Fixed bugs, added new features for developers, made it overally better
1.2 - Added a few extra natives, gifts are rotating and floating, just like the ones during the Valve Gift Grab
1.1 - I shouldn't be submitting new plugins drunk