Raised This Month: $ Target: $400
 0% 

30s secure time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
johanek
Junior Member
Join Date: Jul 2010
Old 06-14-2011 , 05:14   30s secure time
Reply With Quote #1

Code:
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_clcmd("say rr","restart",0,"restart round");
}

public restart(id) {
	server_cmd("sv_restartround 1;");
}
Hi, how to do so a user can use the command "rr say" but after 30 seconds as he joined to the server? Thx
johanek is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-14-2011 , 05:30   Re: 30s secure time
Reply With Quote #2

Code:
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_clcmd("say rr","restart",0,"restart round");
}

public restart(id) {
	if(get_user_time(id) > 30) {
		server_cmd("sv_restartround 1;");
	}
}
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
johanek
Junior Member
Join Date: Jul 2010
Old 06-14-2011 , 06:03   Re: 30s secure time
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
Code:
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_clcmd("say rr","restart",0,"restart round");
}

public restart(id) {
	if(get_user_time(id) > 30) {
		server_cmd("sv_restartround 1;");
	}
}
thx
johanek is offline
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 23:29.


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