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

[L4D2] Points System (v1.8.0, 2016-04-11)


Post New Thread Reply   
 
Thread Tools Display Modes
evilmaniac
SourceMod Donor
Join Date: May 2012
Old 02-03-2016 , 18:06   Re: [L4D2] Points System (v1.7.7, 2016-02-02)
Reply With Quote #11

Quote:
Originally Posted by SELL View Post
when they change team, then Points are reset. using the instructions above code. but how to do so by using the command !takeover Points are not reset
Code:
HookEvent("player_team", Reset_Points); 
bool bTakeOver[MAXPLAYERS];

public Action Reset_Points(Handle hEvent, char[] sEventName, bool bDontBroadcast){
	int iClientIndex = GetClientOfUserId(GetEventInt(hEvent, "userid"));
	if(IsClientSurvivor(iClientIndex) || IsClientInfected(iClientIndex)){
		if(bTakeOver[iClientIndex] == true)
			bTakeOver[iClientIndex] = false;
		else
	   		PlayerData[iClientIndex][iPlayerPoints] = 0;
		return;
	}
	else{ // If player moved to spectator
		bTakeOver[iClientIndex] = true;
	}
}
Try this. People can still go around this by switching to spectator before moving to the other team; but if takeover works like I think it does, this should work for what you are trying to do.
__________________

Last edited by evilmaniac; 02-03-2016 at 18:09.
evilmaniac is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 02-04-2016 , 08:25   Re: [L4D2] Points System (v1.7.7, 2016-02-02)
Reply With Quote #12

Not sure if your using the takeover plugin with signatures but if not the sb_takecontrol is vanilla so you can remove the cheat bit flag from it
and no issues of crashing otherwise.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
Jangox23
New Member
Join Date: Feb 2016
Old 02-06-2016 , 00:49   Re: [L4D2] Points System (v1.7.7, 2016-02-02)
Reply With Quote #13

Hello, I'd like to make a small question

How do I change the value of the items, or the quantity of points that the players are going to start with in everymap?, because I tried changing the number 10 in here: "l4d2_points_start", "10". And put a 15, leaving it like this: "l4d2_points_start", "15" (this in the .SP file) but it causes no change in the game.

I also tried to change it from the console inside the game, and there I was able to change it, but it only changed during the campaign or during the time I had the game opened. But after I closed the game and opened it again it all went back to the predetermined characteristics

Is there anyway that I can make this kind of changes permanent for my server? (It is a local server, I'm just testing it now to use it in a more serious server in the future)

Last edited by Jangox23; 02-06-2016 at 01:54. Reason: Forgot to say something
Jangox23 is offline
evilmaniac
SourceMod Donor
Join Date: May 2012
Old 02-06-2016 , 08:30   Re: [L4D2] Points System (v1.7.7, 2016-02-02)
Reply With Quote #14

Quote:
Originally Posted by Jangox23 View Post
Hello, I'd like to make a small question

How do I change the value of the items, or the quantity of points that the players are going to start with in everymap?, because I tried changing the number 10 in here: "l4d2_points_start", "10". And put a 15, leaving it like this: "l4d2_points_start", "15" (this in the .SP file) but it causes no change in the game.

I also tried to change it from the console inside the game, and there I was able to change it, but it only changed during the campaign or during the time I had the game opened. But after I closed the game and opened it again it all went back to the predetermined characteristics

Is there anyway that I can make this kind of changes permanent for my server? (It is a local server, I'm just testing it now to use it in a more serious server in the future)
Of-course
When you first run the plugin, it will automatically generate a configuration file that will be located in your server's directory. The exact location of the plugin's configuration file is as follows:
Code:
<dir>/left4dead2/cfg/sourcemod/l4d2_points_system.cfg
Changing the l4d2_points_start CVAR in there will apply the change permanently
__________________

Last edited by evilmaniac; 02-06-2016 at 08:39.
evilmaniac is offline
Jangox23
New Member
Join Date: Feb 2016
Old 02-06-2016 , 16:59   Re: [L4D2] Points System (v1.7.7, 2016-02-02)
Reply With Quote #15

Quote:
Originally Posted by evilmaniac View Post
Of-course
When you first run the plugin, it will automatically generate a configuration file that will be located in your server's directory. The exact location of the plugin's configuration file is as follows:
Code:
<dir>/left4dead2/cfg/sourcemod/l4d2_points_system.cfg
Changing the l4d2_points_start CVAR in there will apply the change permanently
It worked!! Thank you very much ;)
Jangox23 is offline
Pyc
Senior Member
Join Date: Jan 2014
Old 02-15-2016 , 09:35   Re: [L4D2] Points System (v1.7.8, 2016-02-06)
Reply With Quote #16

now points saving?
Pyc is offline
evilmaniac
SourceMod Donor
Join Date: May 2012
Old 02-16-2016 , 14:36   Re: [L4D2] Points System (v1.7.8, 2016-02-06)
Reply With Quote #17

Quote:
Originally Posted by Pyc View Post
now points saving?
That has not been integrated yet.
__________________
evilmaniac is offline
noxman
Member
Join Date: Jun 2012
Old 04-02-2016 , 16:54   Re: [L4D2] Points System (v1.7.9, 2016-02-16)
Reply With Quote #18

Few Suggestions:

#1 Please implement this fix for Molotov exploit. 100 Points in 2 Seconds

#2 Survivor shouldn't buy any chargers, hunters, smokers...

Thanks

Last edited by noxman; 04-02-2016 at 16:55.
noxman is offline
PatriotGames
AlliedModders Donor
Join Date: Feb 2012
Location: root@irs:/# rm -rf /
Old 04-11-2016 , 01:10   Re: [L4D2] Points System (v1.7.9, 2016-02-16)
Reply With Quote #19

Quote:
Originally Posted by noxman View Post
Few Suggestions:

#1 Please implement this fix for Molotov exploit. 100 Points in 2 Seconds

#2 Survivor shouldn't buy any chargers, hunters, smokers...

Thanks
Regarding #2, I asked evilmaniac about this as well and he said he is not doing anymore public releases of this plugin, at least for now. Hopefully at some point this exploit will be patched.

Patriot
PatriotGames is offline
evilmaniac
SourceMod Donor
Join Date: May 2012
Old 04-11-2016 , 17:11   Re: [L4D2] Points System (v1.7.9, 2016-02-16)
Reply With Quote #20

I already wrote a patch for both and will be pushing it soon.
__________________
evilmaniac is offline
Reply


Thread Tools
Display Modes

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 14:35.


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