AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   CS Vehicle License Management (https://forums.alliedmods.net/showthread.php?t=96966)

johnjg75 07-11-2009 00:31

CS Vehicle License Management
 
5 Attachment(s)
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

joaquimandrade 07-11-2009 00:37

Re: CS Vehicle License Management
 
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()

johnjg75 07-11-2009 00:46

Re: CS Vehicle License Management
 
Thanks, I haven't had time to go over it, i just wrote it up in like an hour.

Version 1.1 Released.

GHW_Chronic 07-11-2009 01:46

Re: CS Vehicle License Management
 
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.

`666 07-21-2009 01:20

Re: CS Vehicle License Management
 
revoked players stored in memory or file?
cool plugin ;)

johnjg75 07-21-2009 14:08

Re: CS Vehicle License Management
 
Quote:

Originally Posted by `666 (Post 877585)
revoked players stored in memory or file?
cool plugin ;)

It's stored in vault which means it's stored in a file. And thanks :)

`666 07-22-2009 10:40

Re: CS Vehicle License Management
 
nice, can you please maybe add time ban, like "amx_revoke player 120" that will remove there license for 120 minutes.

Joeyman 04-09-2011 15:23

Re: CS Vehicle License Management
 
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)

WhiteFang1319 02-29-2020 15:16

Re: CS Vehicle License Management
 
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


All times are GMT -4. The time now is 12:18.

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