Code:
new Title[ 101 ], szName[ 32 ]; get_user_name( id, szName, 31 );
formatex( Title, 100, "Do You Accept ( \r%s\y ) Donation From \r%s\y", Desc, szName );
new menu = menu_create( Title, "Donate_Handler" );
menu_additem( menu, "I Accept The Donation", "1", 0 );
menu_additem( menu, "I Dont Accept", "2", 0 );
menu_display( g_iDonTarget, menu, 0 );
return PLUGIN_HANDLED;
}
public Donate_Handler( id, menu, item )
{
new szName[ 32 ]; get_user_name( g_iDonTarget, szName, 31 );
if( item == MENU_EXIT )
{
Color( id, "%s !t%s!n Declined Your !gDonation!n",PREFIX, szName );
menu_destroy( menu );
return PLUGIN_HANDLED;
}
this is spose to show menu to Target, if Target Declined or exits menu its spose to then show msg to Doner that they declined the Donation.
is this the correct way... i test on my lan server and only with me and it works... but since im same person it would work.. i would like to know if this would work the way i want it to ?
this is for my rewrite of my latest plugin.
__________________