Raised This Month: $ Target: $400
 0% 

[ANY] Gifts!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Plugin ID:
2750
Plugin Version:
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Gifts :333
    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 - 2366 views - 493 Bytes)
    File Type: smx zgifts_test.smx (2.4 KB, 2354 views)
    File Type: inc zephstocks.inc (32.4 KB, 2682 views)
    File Type: inc gifts.inc (1.1 KB, 2801 views)
    File Type: sp Get Plugin or Get Source (gifts.sp - 3421 views - 10.3 KB)
    File Type: smx gifts.smx (38.0 KB, 4442 views)
    __________________
    Taking private C++/PHP/SourcePawn requests, PM me.

    Last edited by Zephyrus; 08-08-2014 at 08:37.
    Zephyrus 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 01:09.


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