Raised This Month: $32 Target: $400
 8% 

[CS:GO] Steam group money reward


Post New Thread Reply   
 
Thread Tools Display Modes
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 02-15-2016 , 08:35   Re: [CS:GO] Steam group money reward
Reply With Quote #21

Quote:
Originally Posted by supreeda View Post
Tik tok tik tok tik tok .....
I have alot of other things to do for now, later we will see how it will go.
boomix is offline
supreeda
Senior Member
Join Date: Jul 2015
Old 03-09-2016 , 01:27   Re: [CS:GO] Steam group money reward
Reply With Quote #22

Wait ^^
supreeda is offline
FreedomArchdevil
Junior Member
Join Date: Jan 2016
Location: Russia, Moscow
Old 04-06-2016 , 06:18   Re: [CS:GO] Steam group money reward
Reply With Quote #23

Correct, pleasy "Plugin failed to compile! Please try contacting the author."
__________________
Hardcore Mod Server
FreedomArchdevil is offline
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 07-17-2016 , 14:23   Re: [CS:GO] Steam group money reward
Reply With Quote #24

Quote:
Originally Posted by FreedomArchdevil View Post
Correct, pleasy "Plugin failed to compile! Please try contacting the author."
Added smx for download.
__________________
boomix is offline
Danii
AlliedModders Donor
Join Date: Oct 2014
Location: localhost
Old 08-02-2016 , 05:07   Re: [CS:GO] Steam group money reward
Reply With Quote #25

It doesnt work. I test it on my server ...

It not gives the money. The GroupID is ok ...
__________________
Danii is offline
Cooky
Veteran Member
Join Date: Jun 2010
Location: 127.0.0.1
Old 08-02-2016 , 05:18   Re: [CS:GO] Steam group money reward
Reply With Quote #26

Quote:
Originally Posted by Danii View Post
It doesnt work. I test it on my server ...

It not gives the money. The GroupID is ok ...
Provide log errors at least.... saying "It doesn't work" doesn't really help solving issues!
Also... followed all the installation instructions?
Cooky is offline
Danii
AlliedModders Donor
Join Date: Oct 2014
Location: localhost
Old 08-02-2016 , 05:33   Re: [CS:GO] Steam group money reward
Reply With Quote #27

Dude ... there is no log about it.

I didnt install SteamWorks at 1st so yah ... i got an log about it. I did install it now ...

The plugins shows on sm plugins list

The cvars works ... my SteamID is ok ...

Tested with 50 / kill - with 1000 and 10000 ... it doesnt give the extra money.

What logs do you want?

This is my Steam Group - This is my Steam GroupID ( 103582791455360493 ) from HERE.

This is my cfg ...

Quote:
// This file was auto-generated by SourceMod (v1.7.3-dev+5303)
// ConVars for plugin "groupplayers.smx"


// Group ID 64
// -
// Default: "xxxxxxxxxxxxxxxxxx"
sm_groupid "103582791455360493"

// How much more money per kill, if player is in group
// -
// Default: "50"
sm_moneyperkill "50"
This is sm plugins list

Quote:
21 "Group players" (1.1) by boomix
--------------------------------------

Tested now with Team Tag On and Off ... still nothing.

The plugin doesnt do nothing ...
__________________

Last edited by Danii; 08-02-2016 at 05:54.
Danii is offline
Qes
AlliedModders Donor
Join Date: Jul 2014
Old 08-04-2016 , 15:14   Re: [CS:GO] Steam group money reward
Reply With Quote #28

Please, delete my post

Last edited by Qes; 08-04-2016 at 15:15.
Qes is offline
EinfachPascal
Junior Member
Join Date: Aug 2016
Old 08-21-2016 , 19:23   Re: [CS:GO] Steam group money reward
Reply With Quote #29

doesnt work, it doesnt give the extra money
EinfachPascal is offline
anonym93
Junior Member
Join Date: Dec 2013
Location: Romania
Old 09-15-2017 , 23:36   Re: [CS:GO] Steam group money reward
Reply With Quote #30

Hello i try to use this plugin and still not working... so i try to make one like that... don't judge my source please, if you know more, you can edit it how you like. That's my work and still working perfect on my test server
Code:
#include <sourcemod>
#include <cstrike>
#include <steamworks>
#include <autoexecconfig>
#include <smlib>

#pragma semicolon 1


static Handle:GroupID;
static Handle:BonusSteamJoin;
static Handle:MoneyKill;
static bool:IsMemberOfGroup = false;


public Plugin:myinfo = {
	name = "CS:GO Stuff",
	author = "anonym93",
	description = "Chestii necesare pentru CSGO.Lunetistii.RO",
	version = "1.0",
	url = "http://lunetistii.ro/"
}

public OnPluginStart( ) {
	AutoExecConfig_SetFile("plugin.anonym93");
	GroupID = AutoExecConfig_CreateConVar("anonym93_check_groupid", "2981727", "ID-ul grupului care vreti sa fie verificat");
	BonusSteamJoin = AutoExecConfig_CreateConVar("anonym93_enable_bonus", "1", "Activeaza Bonusul pentru cei care sunt membrii grupului tau Steam");
	MoneyKill = AutoExecConfig_CreateConVar("anonym93_bonus_kill", "5", "Cati bani sa primeasca per kill daca este activat bonusul");

	AutoExecConfig_ExecuteFile();
	AutoExecConfig_CleanFile();

	HookEventEx( "player_connect_full", player_connect_full );
	HookEvent("player_death", Event_PlayerDeath);
}

public player_connect_full( Event:event, const String:name[ ], bool:dontBroadcast ) {
	new client = GetClientOfUserId( GetEventInt( event, "userid" ) );

	if( IsClientConnected( client ) && !IsFakeClient( client ) ) {
		SteamWorks_GetUserGroupStatus( client, GetConVarInt( GroupID ) );
	}
}

public int SteamWorks_OnClientGroupStatus( int authid, int groupAccountID, bool isMember, bool isOfficer ) {
	int client = GetClientOfSteamId( authid );

	decl String: Name[ 32 ];
	GetClientName( client, Name, sizeof( Name ) );

	if(isMember && BonusSteamJoin) {
		PrintToServer("======= FAZA #2 DERULATA [%s] ======", Name);
		IsMemberOfGroup = true;
	} else {
		PrintToServer("======= FAZA #2 FAIL [%s] ======", Name);
		IsMemberOfGroup = false;
	}
}

public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) {
	new client = GetClientOfUserId(GetEventInt(event, "attacker"));

	if(IsMemberOfGroup && BonusSteamJoin) {
		new b = GetConVarInt(MoneyKill);
		new bani = Client_GetMoney(client) + b;
		Client_SetMoney(client, bani);
	}
}

public int GetClientOfSteamId( int authid ) {
	for( int i = 1; i <= MaxClients; i++ ) {
		if( IsClientInGame( i ) ) {
			decl String: SteamId[ 64 ];
			GetClientAuthId( i, AuthId_Steam3, SteamId, sizeof( SteamId ) );
			
			decl String: SteamIdString[ 64 ];
			IntToString( authid, SteamIdString, sizeof( SteamIdString ) );
			
			if( StrContains( SteamId, SteamIdString, false ) > -1 ) {
				return i;
			}
		}
	}
	
	return -1;
}
__________________
anonym93 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 18:07.


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