Raised This Month: $ Target: $400
 0% 

Check the player's played time


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Magicher0ex
Member
Join Date: Dec 2019
Old 08-21-2020 , 15:48   Re: Check the player's played time
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
PHP Code:
public ClientCommand_PlayedTimeid )
{
    new 
szPlayer[32], temp;
    
read_argv(2szPlayer31);
        
    if((
temp=cmd_target(idszPlayer)) > 0)
        {
        
id temp;
    }

    new 
szTime[128]
    new 
szName[32]
    
get_time_length(idget_user_total_playtimeid ), timeunit_secondsszTimecharsmax(szTime))
    
get_user_name(idszNamecharsmax(szName)) 
    
ColorChatidGREEN"^x04%s^x01's Time:^x04 %s"szNameszTime)

Replace and give it a try.

PS : this section is for the people that are interested in coding. And want to learn.
error 017: undefined symbol "cmd_target"
Magicher0ex is offline
 



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 13:45.


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