Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include < amxmodx >
- #include < CardsInc >
- #define MAX_INVENTORY_SLOTS 30
- #define MAX_DECK_CARDS 6
- new Array: g_aCards;
- enum _: g_mCardsData
- {
- g_mCardName[ 32 ],
- g_mCardDescription[ 128 ],
- g_mCardCategory,
- g_mCardRarity,
- g_mCardMaxLevels,
- g_mCardPerLevel,
- g_mCardPerLevel2
- };
- enum _: g_mItemsData
- {
- g_mCardId,
- new gItems[ 33 ][ MAX_INVENTORY_SLOTS ]
- public plugin_init()
- {
- register_plugin( "Jailbreak: Cards API", "1.0", "Rejack" );
- g_aCards = ArrayCreate( g_mCardsData );
- register_card( "Damage Card", "Damage Card", OFFENSIV
- gItems[ client ][
- }
- public plugin_natives( )
- {
- register_native( "register_card", "_register_card" );
- }
- public _register_card( plugin, params )
- {
- static aCards[ g_mCardsData ];
- static iPosition;
- iPosition = ArraySize( g_aCards );
- get_string( 1, aCards[ g_mCardName ], 31 );
- get_string( 2, aCards[ g_mCardDescription ], 127 );
- aCards[ g_mCardRarity ] = get_param( 3 );
- aCards[ g_mCommonMaxLevels ] = get_param( 4 );
- aCards[ g_mRareMaxLevels ] = get_param( 5 );
- aCards[ g_mEpicMaxLevels ] = get_param( 6 );
- aCards[ g_mLegMaxLevels ] = get_param( 7 );
- aCards[ g_mCommonPerLevel ] = get_param_f( 8 );
- aCards[ g_mCommonPerLevel2 ] = get_param_f( 9 );
- aCards[ g_mRarePerLevel ] = get_param_f( 10 );
- aCards[ g_mRarePerLevel2 ] = get_param_f( 11 );
- aCards[ g_mEpicPerLevel ] = get_param_f( 12 );
- aCards[ g_mEpicPerLevel2 ] = get_param_f( 13 );
- aCards[ g_mLegPerLevel ] = get_param_f( 14 );
- aCards[ g_mLegPerLevel2 ] = get_param_f( 15 );
- ArrayPushArray( g_aCards, aCards );
- return iPosition;
- }
Advertisement
Add Comment
Please, Sign In to add comment