Raised This Month: $51 Target: $400
 12% 

Donate Time.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LambStar
Member
Join Date: Aug 2012
Location: UAE
Old 08-26-2012 , 13:08   Donate Time.
Reply With Quote #1

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 ^^
LambStar is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 08-26-2012 , 13:36   Re: Donate Time.
Reply With Quote #2

post your full code.
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 08-26-2012 , 14:32   Re: Donate Time.
Reply With Quote #3

Quote:
Originally Posted by quilhos View Post
post your full code.
I think he's requesting this plugin..
Torge is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-26-2012 , 14:52   Re: Donate Time.
Reply With Quote #4

Quote:
Originally Posted by Torge View Post
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.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
LambStar
Member
Join Date: Aug 2012
Location: UAE
Old 08-26-2012 , 16:05   Re: Donate Time.
Reply With Quote #5

Quote:
Originally Posted by Torge View Post
I think he's requesting this plugin..
i have the plugin.
LambStar is offline
talha14
Member
Join Date: Aug 2012
Location: London
Old 08-26-2012 , 15:35   Re: Donate Time.
Reply With Quote #6

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
talha14 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-26-2012 , 15:36   Re: Donate Time.
Reply With Quote #7

You guys are making no sense. Donate time? What "time" are we talking about here?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 08-26-2012 , 16:07   Re: Donate Time.
Reply With Quote #8

This is something i made on request long time ago.

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; }

Last edited by matsi; 08-27-2012 at 16:31.
matsi is offline
LambStar
Member
Join Date: Aug 2012
Location: UAE
Old 08-26-2012 , 16:04   Re: Donate Time.
Reply With Quote #9

Time played in the server :/
LambStar is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 08-26-2012 , 16:05   Re: Donate Time.
Reply With Quote #10

Again --' Post here the SMA
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
Reply



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 09:43.


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