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

[REQ][CSGO] Limited server access by Points


Post New Thread Reply   
 
Thread Tools Display Modes
Jackol1234
Senior Member
Join Date: Apr 2015
Old 05-30-2016 , 18:52   Re: [REQ][CSGO] Limited server access by Points
Reply With Quote #31

Quote:
Originally Posted by ElaMeMamou View Post
Jack, new come players with 0 points are able to join... i changed to only players with 15k+ points

ideas?
If you're talking about having a server that only allows users with 15,000 points or above then you'll have to add a check to see if they're in the database yet. Deathknife's addition should work just fine.
__________________
Accepting PM's for private requests!
Jackol1234 is offline
ElaMeMamou
Member
Join Date: May 2016
Old 05-31-2016 , 08:41   Re: [REQ][CSGO] Limited server access by Points
Reply With Quote #32

Quote:
Originally Posted by Jackol1234 View Post
If you're talking about having a server that only allows users with 15,000 points or above then you'll have to add a check to see if they're in the database yet. Deathknife's addition should work just fine.
everything perfect now thanks
ElaMeMamou is offline
cristianronaldo
Member
Join Date: Sep 2015
Old 06-16-2016 , 01:31   Re: [REQ][CSGO] Limited server access by Points
Reply With Quote #33

Quote:
Originally Posted by ElaMeMamou View Post
Mate i tried but im getting this warning:




PHP Code:
#include <ckSurf>

#pragma semicolon 1

#define PLUGIN_VERSION "0.1"

public Plugin:myinfo =
{
    
name "ckSurf Kicker",
    
author "DeweY",
    
version PLUGIN_VERSION,
    
description "Kicks clients with 1000 points or more.",
    
url "http://Omegagaming.org/"
};

Handle g_hDatabase null;

char g_sSteamID[MAXPLAYERS+1][64];

public 
void OnPluginStart()
{
    
SQL_TConnect(SQLCallback_Connect"cksurf");
}

public 
SQLCallback_Connect(Handle ownerHandle hndl, const char[] errorany data)
{
    if (
hndl == null)
    {
        
SetFailState("Error connecting to database. %s"error);
    }

    
g_hDatabase hndl;
}

public 
void OnClientPostAdminCheck(client)
{
    
GetClientAuthId(clientAuthId_Steam2g_sSteamID[client], sizeof(g_sSteamID[])); 
    
CheckRank(client);
}

public 
CheckRank(int client)
{
    
char query[255];
    
Format(query255"SELECT `points` FROM `ck_playerrank` WHERE `steamid`='%s' LIMIT 1"g_sSteamID[client]);
    
SQL_TQuery(g_hDatabaseSQLCallback_LoadPlayerPointsqueryGetClientUserId(client));
}

public 
SQLCallback_LoadPlayerPoints(Handle ownerHandle hndl, const char[] errorany data)
{
    if (
hndl == null)
    {
        
SetFailState("Error grabbing player points. %s"error);
    }

    
int client GetClientOfUserId(data);


    if (
SQL_GetRowCount(hndl) == 1)
    {
        
SQL_FetchRow(hndl);
        
int playerpoints SQL_FetchInt(hndl0);
            if (
playerpoints >= 1000
        { 
            if (
GetAdminFlag(GetUserAdmin(client), Admin_Generic)) 
            { 
                return; 
            } 
            
KickClient(client"This server is for beginners."); 
        }  
    }

Hello friend,can you add to this plugin a function to redirect to another server after kick???
cristianronaldo is offline
Jakeey802
Senior Member
Join Date: Oct 2015
Old 06-16-2016 , 03:42   Re: [REQ][CSGO] Limited server access by Points
Reply With Quote #34

Quote:
Originally Posted by cristianronaldo View Post
Hello friend,can you add to this plugin a function to redirect to another server after kick???
Not possible
Jakeey802 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 22:35.


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