Raised This Month: $ Target: $400
 0% 

[HELP] Get gametime in Chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 05-16-2014 , 20:00   Re: [HELP] Get gametime in Chat
Reply With Quote #6

Quote:
Originally Posted by Backstabnoob View Post
No, I told you what to do.
i did, but it show me that: (8.2222:8)
PHP Code:
new Floattimeleftminutesseconds;

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd"say /open""CmdOpen" );
}

public 
CmdOpenclient )
{
    
    new 
ent = -1szName32 ];
    
    new 
timeleft get_gametime();
    
    
minutes timeleft 60;
         
seconds timeleft 60;
    
    if ( 
client get_user_nameclientszNamecharsmaxszName ) );
    
    while ( ( 
ent fm_find_ent_by_classent"func_door" ) ) ) 
        
dllfuncDLLFunc_Useent);
    
    if ( 
client )    client_print(0print_chat"%s has opened the cells, at (%i:%i)"szNameminutesseconds );
    
    return 
1;


Last edited by Fuck For Fun; 05-20-2014 at 16:22.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
 



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:37.


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