Raised This Month: $ Target: $400
 0% 

1 per round my man!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dcyuri7
Junior Member
Join Date: Mar 2005
Location: Texas
Old 03-16-2005 , 17:40   1 per round my man!
Reply With Quote #1

Alright, I need some help with how to make a command only allowed once per round. Here's what i ahve going...
someone says "/respawn"
and they then respawn.
I dont want them using it 5 million times each round, only once. How is this done?
I cannot find anything that works as a "cvar array", so to say, that is dependent upon user usage amount.

Any help?
dcyuri7 is offline
dcyuri7
Junior Member
Join Date: Mar 2005
Location: Texas
Old 03-16-2005 , 17:44  
Reply With Quote #2

oh ya, heres my source, so the nice person who might help me, sees where i am going with this.

Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>

public plugin_init() {
	register_plugin("respawn","1.0","yuri")
	register_clcmd("say /respawn","process",0," - to respawn")
	return PLUGIN_CONTINUE
}

public admin_revive(id) 
{ 
   spawn(id);
   set_task(0.5,"spawnagain",id); 
} 

public spawnagain(id) { 
   spawn(id);
} 

public process(id) {
	if (get_user_flags(id)&ADMIN_MAP) {
		admin_revive(id)
		return PLUGIN_HANDLED
   }
   else {
        // Your help goes here...
I appreciate any help on this.
__________________
Capitalization is the difference between,
"I helped my Uncle Jack off a horse" and,
"I helped my uncle jack off a horse".
- Unknown
dcyuri7 is offline
dcyuri7
Junior Member
Join Date: Mar 2005
Location: Texas
Old 03-16-2005 , 18:49  
Reply With Quote #3

i decided to make it cost money, therefore limiting people for purchasing it. So, moderator/ admin can u delete this thread?
__________________
Capitalization is the difference between,
"I helped my Uncle Jack off a horse" and,
"I helped my uncle jack off a horse".
- Unknown
dcyuri7 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 14:02.


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