AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Donate Time. (https://forums.alliedmods.net/showthread.php?t=194238)

LambStar 08-26-2012 13:08

Donate Time.
 
Hey Guys,

Any one Knows how to donate time to a particular player with this command, amx_dtime "playername" "time"

Please help me if u know,

Thank You ^^

quilhos 08-26-2012 13:36

Re: Donate Time.
 
post your full code.

Torge 08-26-2012 14:32

Re: Donate Time.
 
Quote:

Originally Posted by quilhos (Post 1783362)
post your full code.

I think he's requesting this plugin..

YamiKaitou 08-26-2012 14:52

Re: Donate Time.
 
Quote:

Originally Posted by Torge (Post 1783435)
I think he's requesting this plugin..

Based on his post, it seems like he is requesting a feature be added to another plugin. Or, his translator is screwed up.

talha14 08-26-2012 15:35

Re: Donate Time.
 
even i want this plugin but with this commad
in console dcs_donate
on screen
1. name
2.name
3.name
if i press any number
then it should come amt u want to donate to <name>
10

YamiKaitou 08-26-2012 15:36

Re: Donate Time.
 
You guys are making no sense. Donate time? What "time" are we talking about here?

LambStar 08-26-2012 16:04

Re: Donate Time.
 
Time played in the server :/

LambStar 08-26-2012 16:05

Re: Donate Time.
 
Quote:

Originally Posted by Torge (Post 1783435)
I think he's requesting this plugin..

i have the plugin.

quilhos 08-26-2012 16:05

Re: Donate Time.
 
Again --' Post here the SMA

matsi 08-26-2012 16:07

Re: Donate Time.
 
This is something i made on request long time ago. :grrr:

Code:
new gTime[ 33 ]; // Variable that holds total time of player new g_tempid; // Played Id of target public plugin_init() {     register_clcmd( "say /donate", "CmdDonate" ); //Opens the menu     register_clcmd( "pt_donate", "CmdDonateTime" ); } public CmdDonateTime( id, level, cid ) {     new amount[ 21 ];         read_argv( 1, amount, charsmax( amount )  );     new szSenderName[ 32 ], szReceiverName[ 32 ];     get_user_name( id, szSenderName, charsmax( szSenderName ) );     get_user_name( g_tempid, szReceiverName, charsmax( szReceiverName ) );         new timenum = str_to_num( amount );         if( timenum > ( gTime[ id ] / 60 ) )     {         client_print( id, print_chat, "* You don't have enough time to give." );         return PLUGIN_HANDLED;     }         gTime[ g_tempid ] += timenum * 60;     gTime[ id ] -= timenum * 60;         client_print( g_tempid, print_chat, "* You received %i minutes from %s", timenum, szSenderName );     client_print( id, print_chat, "* You gave %i minutes to %s leaving you %i minutes", timenum, szReceiverName, ( gTime[ id ] / 60 ) );         Save( id )     Save( g_tempid )         return PLUGIN_CONTINUE; } public CmdDonate( id ) {     new frm[ 125 ];     format( frm, charsmax( frm ), "\yDonate time to player ( Your time in minutes: \w%i )", ( gTime[ id ] / 60 ) );         new menu = menu_create( frm, "menu_handler" );         new players[ 32 ], pnum, tempid;         new szName[ 32 ], szTempid[ 10 ];         get_players( players, pnum );         for( new i; i < pnum; i++ )     {         tempid = players[ i ];                 get_user_name( tempid, szName, charsmax( szName ) );         num_to_str( tempid, szTempid, charsmax( szTempid ) );                 menu_additem( menu, szName, szTempid, 0 );             }     menu_display( id, menu, 0 ); } public menu_handler( id, menu, item ) {     if( item == MENU_EXIT )     {         menu_destroy( menu );         return PLUGIN_HANDLED;     }         new data[ 6 ], szName[ 64 ];     new access, callback;     menu_item_getinfo( menu, item, access, data, charsmax( data ), szName, charsmax( szName ), callback );         g_tempid = str_to_num( data );         new szTargetName[ 32 ];     get_user_name( g_tempid, szTargetName, charsmax( szTargetName ) );         client_print( id, print_chat, "* Write amount you want to donate to %s", szTargetName );         client_cmd( id, "messagemode pt_donate" );         menu_destroy( menu );     return PLUGIN_HANDLED; }


All times are GMT -4. The time now is 23:42.

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