Raised This Month: $ Target: $400
 0% 

Finding a player from native by steamid


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xDoctor
Member
Join Date: Jul 2013
Old 06-07-2015 , 02:00   Finding a player from native by steamid
Reply With Quote #1

i tried to get the player timelength online from my other plugin by doing

get_player_timeplayed( SteamID )

PHP Code:
public plugin_natives()
    
register_native"get_player_timeplayed""get_player_timeplayed");
    
public 
get_player_timeplayedsteamid2[] )
{
    new 
steamid332 ];
    
    
formatexsteamid3charsmaxsteamid3 ), "%s"steamid2 );
    new 
SteamID32 ], TimeLength;
    
    for( new 
0ArraySizeg_iTimePlayer ); i++ )
    {
        
ArrayGetStringg_iTimePlayeriSteamIDcharsmaxSteamID ) );
        
TrieGetCellg_iTimeLengthSteamIDTimeLength );
        
        if( 
equalisteamid2SteamID ) || equalisteamid3SteamID ) )
            return 
TimeLength;
    }
    return 
0;


PHP Code:
new TimePlayed get_player_timeplayedSteamID ); 
in the other plugin
can any one help me ?
xDoctor is offline
 


Thread Tools
Display Modes

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 20:19.


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