Just made a few corrections. Untested
PHP Code:
#include <amxmodx>
new Float: g_fGameTime[ 33 ];
public plugin_init()
{
register_clcmd("say /time", "cmd_timer");
}
public client_connect( id )
{
g_fGameTime[ id ] = get_gametime();
}
public client_disconnect( id )
{
g_fGameTime[ id ] = 0.0;
}
public cmd_timer( id )
{
new Float: fSec = ( get_gametime() - g_fGameTime[ id ] );
client_print( id , print_chat , "You're playing already for %f seconds" , fSec );
}
__________________