Raised This Month: $ Target: $400
 0% 

Only prime bypass fpr VIP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Trum
AlliedModders Donor
Join Date: Jan 2017
Old 12-28-2018 , 13:51   Only prime bypass fpr VIP
Reply With Quote #1

Hay'o coders!

I'm here to ask for a plugin that let vip (flag a) join even if the server have "only prime" if the vip's account is non-prime.

I would like this in a code somehow because i can't code myself, hope you can help me and i will appreciate it a lot! I can pay if everything is working as expected.

You can reach me on discord if needed: Trum#0001
or steam: https://steamcommunity.com/id/officialtrum

Thanks!
Trum is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 12-31-2018 , 11:15   Re: Only prime bypass fpr VIP
Reply With Quote #2

Code by Asherkin, baker and psychonic
Just change "ADMFLAG_ROOT" to "ADMFLAG_RESERVATION"

PHP Code:
#pragma semicolon 1

#include <sourcemod>
#include <SteamWorks>

#define PLUGIN_VERSION "1.0.0"

public Plugin myinfo = {
    
name        "Free2BeKicked - CS:GO",
    
author      "Asher \"asherkin\" Baker, psychonic",
    
description "Automatically kicks non-premium players.",
    
version     PLUGIN_VERSION,
    
url         "http://limetech.org/"
};

public 
OnPluginStart()
{
    
CreateConVar("anti_f2p_version"PLUGIN_VERSION"Free2BeKicked"FCVAR_DONTRECORD|FCVAR_NOTIFY);
}

public 
void OnClientPostAdminCheck(int client)
{
    if (
CheckCommandAccess(client"BypassPremiumCheck"ADMFLAG_ROOTtrue))
    {
        return;
    }
    
    if (
k_EUserHasLicenseResultDoesNotHaveLicense == SteamWorks_HasLicenseForApp(client624820))
    {
        
KickClient(client"You need a paid CS:GO account to play on this server");
        return;
    }
    
    return;

__________________
NanoC is offline
Send a message via Skype™ to NanoC
DabberDoug
Member
Join Date: Feb 2016
Location: USA
Old 01-07-2019 , 20:19   Re: Only prime bypass fpr VIP
Reply With Quote #3

For some reason using Spider Sourcepawn compiler comes back with an error finding steamworks, can you fix?
DabberDoug is offline
Nomad_pl
New Member
Join Date: Nov 2018
Old 01-07-2019 , 22:25   Re: Only prime bypass fpr VIP
Reply With Quote #4

Quote:
Originally Posted by DabberDoug View Post
For some reason using Spider Sourcepawn compiler comes back with an error finding steamworks, can you fix?
Well did you add the steamworks include in spider?
Nomad_pl is offline
DabberDoug
Member
Join Date: Feb 2016
Location: USA
Old 01-07-2019 , 23:14   Re: Only prime bypass fpr VIP
Reply With Quote #5

Quote:
Originally Posted by Nomad_pl View Post
Well did you add the steamworks include in spider?
bruh I'm out here lurking for plugins you think I know sourcepawn
DabberDoug is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 01-07-2019 , 23:38   Re: Only prime bypass fpr VIP
Reply With Quote #6

Download SteamWorks.inc and compile it
__________________
NanoC is offline
Send a message via Skype™ to NanoC
DabberDoug
Member
Join Date: Feb 2016
Location: USA
Old 01-08-2019 , 00:35   Re: Only prime bypass fpr VIP
Reply With Quote #7

Quote:
Originally Posted by NanoC View Post
Download SteamWorks.inc and compile it

I have steamworks on every game server I have, I don't understand what you mean by compile it, should I include the code from steamworks inside the plugin then compile it as one??
DabberDoug is offline
Cruze
Veteran Member
Join Date: May 2017
Old 01-08-2019 , 01:18   Re: Only prime bypass fpr VIP
Reply With Quote #8

Go to addons/sourcemod/scripting/ and create .sp file and paste the code above.
add steamworks.inc in addons/sourcemod/scripting/include/
drag your .sp file to compile.exe available in addons/sourcemod/scripting folder. Your smx file can be found in addons/sourcemod/scripting/compiled/ folder.
__________________
Taking paid private requests! Contact me

Last edited by Cruze; 01-08-2019 at 01:19.
Cruze is offline
Reply



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 13:46.


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