Raised This Month: $32 Target: $400
 8% 

Limit use to specific command


Post New Thread Reply   
 
Thread Tools Display Modes
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 06-27-2012 , 13:37   Re: Limit use to specific command
Reply With Quote #11

Weird, I am not compling to .amx, but it just show that.

Anyway can you give me your sqlvault.inc and sqlvault_ex.inc ?

EDIT :

After downloading both files from http://forums.alliedmods.net/showthread.php?t=146849

It compiled perfectly

Thanx

Last edited by Moody92; 06-27-2012 at 13:39.
Moody92 is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-27-2012 , 14:08   Re: Limit use to specific command
Reply With Quote #12

The compiler first make the output file as .amx and then changes it to .amxx when it's finished. That's the filename extention that Pawn uses for compiled files.
__________________

Last edited by <VeCo>; 06-27-2012 at 14:09.
<VeCo> is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 06-28-2012 , 08:09   Re: Limit use to specific command
Reply With Quote #13

I am sorry, I have one more question exolent

If 2 guys has the command limiter flag, and somebody used amx_votemap for example it will take from the other guy 1 amx_votemap ?
Moody92 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-28-2012 , 09:36   Re: Limit use to specific command
Reply With Quote #14

Quote:
Originally Posted by Moody92 View Post
If 2 guys has the command limiter flag, and somebody used amx_votemap for example it will take from the other guy 1 amx_votemap ?
No. The limit is done per player.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 08-01-2012 , 23:00   Re: Limit use to specific command
Reply With Quote #15

When I tried this, it shows this error in console:
Code:
L 08/02/2012 - 05:54:08: [command_limiter_flags.amxx] Error in sqlv_read_all_ex(): unrecognized token: "'`key1` = '' ORDER BY `key2` ASC;"
Also, if I put the time to 1 day (in seconds), it the limit works, but for only one map, so, if the map changed, I can use the command again.
Anyway to fix it.

My command_limiter file
Code:
; Lines starting with ; are comments
// Lines starting with // are also comments

; Empty lines are ignored

; To limit a command for a certain amount of attempts within a certain amount of time, use this format:
; "command" "uses" "seconds"
; 
; That will limit "command" to a maximum of "uses" within "seconds"
; 
; Be sure player has access for this command or it won't work.
; 
; Example:
; "amx_map" "3" "86400"

"amx_map" "1" "86400"
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-02-2012 , 09:25   Re: Limit use to specific command
Reply With Quote #16

Quote:
Originally Posted by pokemonmaster View Post
When I tried this, it shows this error in console:
Code:
L 08/02/2012 - 05:54:08: [command_limiter_flags.amxx] Error in sqlv_read_all_ex(): unrecognized token: "'`key1` = '' ORDER BY `key2` ASC;"
Also, if I put the time to 1 day (in seconds), it the limit works, but for only one map, so, if the map changed, I can use the command again.
Anyway to fix it.

My command_limiter file
Code:
; Lines starting with ; are comments
// Lines starting with // are also comments

; Empty lines are ignored

; To limit a command for a certain amount of attempts within a certain amount of time, use this format:
; "command" "uses" "seconds"
; 
; That will limit "command" to a maximum of "uses" within "seconds"
; 
; Be sure player has access for this command or it won't work.
; 
; Example:
; "amx_map" "3" "86400"

"amx_map" "1" "86400"
Looks like I just carelessly made a mistake. The plugin has been fixed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 08-08-2012 , 19:58   Re: Limit use to specific command
Reply With Quote #17

Quote:
Originally Posted by Exolent[jNr] View Post
Looks like I just carelessly made a mistake. The plugin has been fixed.
Does this SqlVault needs any database? Cause each time I join the server after using all of my allowed times, the server crash!
EDIT: I didn't find anything in AMXx logs.
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.

Last edited by pokemonmaster; 08-08-2012 at 19:59.
pokemonmaster is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 09-06-2012 , 02:55   Re: Limit use to specific command
Reply With Quote #18

That's right, the server is crashing. no logs!
Moody92 is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 09-21-2012 , 11:35   Re: Limit use to specific command
Reply With Quote #19

Bump
Moody92 is offline
Obada
Senior Member
Join Date: Dec 2014
Location: Abu Dhabi
Old 12-15-2014 , 10:00   Re: Limit use to specific command
Reply With Quote #20

This happens to me too :L

Exolent, Any Idea? My server crashes after I use the limited command. (When I reconnect to be more specific)

PS. I know this thread is old, but I needed the plugin.

Last edited by Obada; 12-15-2014 at 10:05.
Obada is offline
Reply


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:12.


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