Thread: [ANY] Gifts!
View Single Post
Author Message
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 12-31-2011 , 11:06   [ANY] Gifts!
Reply With Quote #1

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(clientGiftConditions:clientState);
native Gifts_GetClientCondition(client);
native Gifts_SpawnGift(Function:callback, const String:model[], Float:lifetimeFloat:position[3], dataowner=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
Attached Files
File Type: sp Get Plugin or Get Source (zgifts_test.sp - 2362 views - 493 Bytes)
File Type: smx zgifts_test.smx (2.4 KB, 2343 views)
File Type: inc zephstocks.inc (32.4 KB, 2668 views)
File Type: inc gifts.inc (1.1 KB, 2789 views)
File Type: sp Get Plugin or Get Source (gifts.sp - 3417 views - 10.3 KB)
File Type: smx gifts.smx (38.0 KB, 4434 views)
__________________
Taking private C++/PHP/SourcePawn requests, PM me.

Last edited by Zephyrus; 08-08-2014 at 08:37.
Zephyrus is offline