Raised This Month: $7 Target: $400
 1% 

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 , 00: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 - 2583 views - 2.5 KB)
__________________

Last edited by johnjg75; 07-11-2009 at 12: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 , 00: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 , 00: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 , 01: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, 02:04
johnjg75
This message has been deleted by johnjg75. Reason: accidental post -_-
`666
AlliedModders Donor
Join Date: Jan 2006
Old 07-21-2009 , 01: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 , 14: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
Old 07-22-2009 , 10: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 , 15: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
Send a message via AIM to Joeyman Send a message via Yahoo to Joeyman Send a message via Skype™ to Joeyman
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 02-29-2020 , 15:16   Re: CS Vehicle License Management
Reply With Quote #9

Is it possible to edit the plugin so that CTs can't drive a specific type of vehicle?
What I'm trying to do is that only Ts and VIP are able to drive vehicles in the !vip_truck map.

I did a simple edit and removed the storing of license, instead whenever a player tries to drive vehicle I check if they're in CT & not a VIP, if this condition is satisfied then they aren't able to drive.

I got what I wanted but there is one issue. For example, CTs aren't able to drive any vehicle, this means that they can't even use the Bikes & Jeep that Ts use in !vip_truck map. Sometimes CTs may kill the terrorists and try to use their vehicles. I want that to be possible.. CTs only shouldn't able able to drive the huge truck but only VIP can and CTs should be able to drive other type of vehicle
WhiteFang1319 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 23:19.


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