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

I need help with my plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lnteresting
Junior Member
Join Date: Jan 2019
Old 02-26-2019 , 15:03   I need help with my plugin
Reply With Quote #1

The plugin im trying to make sets players clan tags as their userID here's an expample


the plugin compiles but doesnt work in game

Code:
#pragma semicolon 1

#define DEBUG

#define PLUGIN_AUTHOR "Interesting"
#define PLUGIN_VERSION "1.00"

#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <sdkhooks>


public Plugin myinfo = 
{
	name = "UserID",
	author = PLUGIN_AUTHOR,
	description = "Sets player's clan tag as their userID'",
	version = PLUGIN_VERSION,
	url = "https://steamcommunity.com/id/AAAAAAGGHHH/"
};

public void OnClientPostAdminCheck(int client)
{
	int ID = GetClientUserId(client);
	char userID[6];
	
	for(int i = 0; ID > 0; i++)
	{
		userID[i] = ID % 10;
		ID = ID / 10;
	}
	
	CS_SetClientClanTag(client, userID);
}
Attached Files
File Type: sp Get Plugin or Get Source (userID.sp - 105 views - 647 Bytes)

Last edited by lnteresting; 02-26-2019 at 15:03.
lnteresting is offline
 



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 18:52.


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