Raised This Month: $ Target: $400
 0% 

request plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 12-25-2014 , 08:04   request plugins
Reply With Quote #1

1: playtime (no based on SQL)


2: buttons time (no spam buttons) for jb maps
Snitch is offline
Send a message via Skype™ to Snitch
Obada
Senior Member
Join Date: Dec 2014
Location: Abu Dhabi
Old 12-25-2014 , 08:23   Re: request plugins
Reply With Quote #2

Played Time : Here You can use nVault or Mysql.

StatsX Shell : Here Im not really sure if you need this.

No Spam Buttons : I couldn't find it.

Last edited by Obada; 12-25-2014 at 08:23.
Obada is offline
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 12-25-2014 , 08:32   Re: request plugins
Reply With Quote #3

Quote:
Originally Posted by Obada View Post
Played Time : Here You can use nVault or Mysql.

StatsX Shell : Here Im not really sure if you need this.

No Spam Buttons : I couldn't find it.
Whatever PlayerTime = no based on SQL
Where do you see, i asking about StatsX Shell !.! I don't need
Snitch is offline
Send a message via Skype™ to Snitch
Kazalu
Senior Member
Join Date: Dec 2013
Location: Romania
Old 12-25-2014 , 10:37   Re: request plugins
Reply With Quote #4

HTML Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "PlayTime"
#define VERSION "1.0"
#define AUTHOR "Kazalu"

new Float:startTime[ 33 ], Float:Time[ 33 ];

new Players[ 32 ];
new playerCount, i;

new name[ 33 ];

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	register_clcmd( "amx_playtime", "cmdPlay" );
}

public plugin_putinserver( id )
{
	startTime[ id ] = get_gametime();
}

public cmdPlay( id )
{
	get_players( Players, playerCount, "c" );
	for (i=1; i<=playerCount; i++) 
	{
		Time[ i ] = get_gametime() - startTime[ i ];
		
		get_user_name( i, name, 32 );
		
		console_print( id, "%s has played %d minutes in a row.", name, floatround( Time[ i ] / 60 ), floatround( Time[ i ] ) );
	}
}
I am not sure if that is what you want, but this returns minutes played by each player on the server in the console, since he has connected the last time.The command is amx_playtime.
Kazalu is offline
Obada
Senior Member
Join Date: Dec 2014
Location: Abu Dhabi
Old 12-25-2014 , 13:25   Re: request plugins
Reply With Quote #5

Quote:
Originally Posted by Snitch View Post
Whatever PlayerTime = no based on SQL
PHP Code:
/* ************ EDIT STARTS HERE ************ */
// 1 = SQL
// 2 = nVault
#define SAVETYPE 2 

Just replace number 2 with number 1 and then edit your host,database,user,pass.

PHP Code:
// IF using sql, edit these..
new const gsz_SQLINFO[][] = {
    { 
"127.0.0.1" },        // HOST
    
"root" },        // USER
    
"" },    // User's password
    
"amxx" }        // Database Name


Last edited by Obada; 12-26-2014 at 01:18.
Obada is offline
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 01-28-2015 , 10:09   Re: request plugins
Reply With Quote #6

@Obada
thanks for it.

but now i need the buttons
Snitch is offline
Send a message via Skype™ to Snitch
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 02-20-2015 , 15:49   Re: request plugins
Reply With Quote #7

bump ! without SQL
Snitch is offline
Send a message via Skype™ to Snitch
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 05-05-2015 , 18:17   Re: request plugins
Reply With Quote #8

bump request 2
__________________
Қазақстан Республикасы
Snitch is offline
Send a message via Skype™ to Snitch
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 06-02-2015 , 07:28   Re: request plugins
Reply With Quote #9

bump
__________________
Қазақстан Республикасы
Snitch is offline
Send a message via Skype™ to Snitch
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 08-15-2015 , 14:17   Re: request plugins
Reply With Quote #10

bump
__________________
Қазақстан Республикасы
Snitch is offline
Send a message via Skype™ to Snitch
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 10:01.


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