Raised This Month: $48 Target: $400
 12% 

CS Vehicle License Management


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands        Approver:   GHW_Chronic (70)
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 07-11-2009 , 01:31   CS Vehicle License Management
Reply With Quote #1

Description
=========
If there is a player that you don't want driving vehicles for any reason, this plugin allows you to revoke their privileges! Read Usage below to find out how to use this plugin.

Modules
=======
  • Ham Sandwich

Usage
=====
Required Flag - ADMIN_KICK
  • amx_revoke <playername> - Revoke a player's driving privileges
  • amx_unrevoke <playername> - Return's a player's driving privileges

Changelog
=========
1.2
  • Fixed Admin Permissions
1.1
  • Optimized
1.0
  • Initial Release

Screenshot
Current Version: 1.2
Attached Files
File Type: sma Get Plugin or Get Source (licensemgmt.sma - 1676 views - 2.5 KB)
__________________

Last edited by johnjg75; 07-11-2009 at 13:06. Reason: Updated to Version 1.2
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 07-11-2009 , 01:37   Re: CS Vehicle License Management
Reply With Quote #2

Funny.

Change client_connect() to client_authorized()

And you can change

PHP Code:
    if(vaultdata_exists(vaultauth))
    {
        
g_PlayerRevokedid ] = true
    

to
PHP Code:
 g_PlayerRevokedid ] = vaultdata_exists(vaultauth
And get rid of client_disconnect()
__________________
joaquimandrade is offline
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 07-11-2009 , 01:46   Re: CS Vehicle License Management
Reply With Quote #3

Thanks, I haven't had time to go over it, i just wrote it up in like an hour.

Version 1.1 Released.
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-11-2009 , 02:46   Re: CS Vehicle License Management
Reply With Quote #4

code is pretty simple clearly not going to have any bugs in this, has a purpose and isn't close to anything else I've seen so I'm going to go ahead and approve this.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Old 07-11-2009, 03:04
johnjg75
This message has been deleted by johnjg75. Reason: accidental post -_-
`666
AlliedModders Donor
Join Date: Jan 2006
Location: UK
Old 07-21-2009 , 02:20   Re: CS Vehicle License Management
Reply With Quote #5

revoked players stored in memory or file?
cool plugin ;)
__________________

`666 is offline
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 07-21-2009 , 15:08   Re: CS Vehicle License Management
Reply With Quote #6

Quote:
Originally Posted by `666 View Post
revoked players stored in memory or file?
cool plugin ;)
It's stored in vault which means it's stored in a file. And thanks
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
`666
AlliedModders Donor
Join Date: Jan 2006
Location: UK
Old 07-22-2009 , 11:40   Re: CS Vehicle License Management
Reply With Quote #7

nice, can you please maybe add time ban, like "amx_revoke player 120" that will remove there license for 120 minutes.
__________________

`666 is offline
Joeyman
Member
Join Date: Dec 2010
Old 04-09-2011 , 16:23   Re: CS Vehicle License Management
Reply With Quote #8

can you put like this?


the plugin is like this:
the player runs out of license and is kicked

and I wanted like this:
the player runs out of license and when he comes into the car runs out of money

could you put like this please?

(PS.:Sorry for my bad english)
Joeyman 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:36.


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