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

Limit use to specific command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 02-29-2012 , 11:27   Limit use to specific command
Reply With Quote #1

Hello, i'm trying to make some plugin for my server but i want some help in this thing

Limited use for specific command for the players who have "n" flag

Example:
Like each 24 hours it's possible to use amx_map 3 times only..

Last edited by Moody92; 06-27-2012 at 13:28. Reason: Adding example
Moody92 is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 04-12-2012 , 12:18   Re: Limited use to specific command
Reply With Quote #2

Bump!
Moody92 is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-12-2012 , 15:45   Re: Limited use to specific command
Reply With Quote #3

Dont bump untill two weeks
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-12-2012 , 15:46   Re: Limited use to specific command
Reply With Quote #4

Quote:
Originally Posted by Bilal Pro View Post
Dont bump untill two weeks
The topic was created a month and 2 weeks ago. Plenty of time to bump.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 04-12-2012 at 15:46.
Exolent[jNr] is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-12-2012 , 16:56   Re: Limited use to specific command
Reply With Quote #5

Oops didnt c that
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 06-22-2012 , 10:29   Re: Limited use to specific command
Reply With Quote #6

Bump, still looking for the code
Moody92 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-22-2012 , 13:21   Re: Limited use to specific command
Reply With Quote #7

Cvars:
command_limiter_flag <flag>
- Flag required for admins/players to have this command limited
- Only 1 flag is allowed

File:
File should be located at: addons/amxmodx/configs/command_limiter.ini
Format for this file is:
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"
Requirements:
AMX Mod X 1.8.1 or higher
SQLVault
SQLVault: Extended
- Compile locally with both of those includes

Installation:
1. Compile the .sma locally with sqlvault.inc and sqlvault_ex.inc
2. Put the .amxx in the plugins folder
3. Put command_limiter_flags.amxx at the TOP of the plugins.ini file, above admin.amxx and all other plugins.
4. Configure the .ini file accordingly


Compiled, not tested.
Attached Files
File Type: sma Get Plugin or Get Source (command_limiter_flags.sma - 988 views - 5.9 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 08-02-2012 at 09:25.
Exolent[jNr] is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 06-23-2012 , 05:16   Re: Limited use to specific command
Reply With Quote #8

Thank you very much
Moody92 is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 06-27-2012 , 13:04   Re: Limited use to specific command
Reply With Quote #9

I know it's like bump but nobody will answer since i said thank you and this topic going down.

I wasn't able to test it before and now while compiling

PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2006 ITB CompuPhaseAMX Mod X Team

Error
Number of arguments does not match definition on line 204

1 Error
.
Could not locate output file C:\Documents and Settings\user\Desktop\cl.amx (compile failed). 

Last edited by Moody92; 06-28-2012 at 08:09.
Moody92 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-27-2012 , 13:35   Re: Limit use to specific command
Reply With Quote #10

It compiles perfectly for me. Why are you compiling to .amx?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 15:51.


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