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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 05-12-2018 , 12:06   Re: [L4D2] Points System (v1.8.0, 2016-04-11)
Reply With Quote #51

I use this version of Crasher, and I get it !Buy using bind keys.
https://forums.alliedmods.net/showpo...1&postcount=35

For Exemple:
bind "f1" "say !buy"
bind "f2" "say !buy ak47"
bind "f3" "say !buy molotov"
bind "f4" "say !buy katana"
bind "f5" "say !buy pills"
bind "m" "say !buy medkit"

So far the only problem, and that does not work the translations of Phrases
Mi.Cura is offline
ilham92-cc-sakura
Senior Member
Join Date: Oct 2008
Location: /var/www/index.html
Old 06-21-2018 , 13:06   Re: [L4D2] Points System (v1.8.0, 2016-04-11)
Reply With Quote #52

I notice when I add this plugins, start server, this plugins cause server load same map twice:

Code:
L 06/22/2018 - 01:03:44: SourceMod log file session started (file "L20180622.log") (Version "1.8.0.6047")
L 06/22/2018 - 01:03:44: -------- Mapchange to c1m1_hotel --------
L 06/22/2018 - 01:03:47: [SM] Changed map to "c1m1_hotel"
L 06/22/2018 - 01:03:48: -------- Mapchange to c1m1_hotel --------
L 06/22/2018 - 01:04:36: Log file closed.
__________________
ilham92-cc-sakura is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 06-21-2018 , 13:42   Re: [L4D2] Points System (v1.8.0, 2016-04-11)
Reply With Quote #53

Quote:
Originally Posted by Crasher_3637 View Post
Updated under Sourcemod 1.8.x.

This version includes 105 custom melee weapons that are in a pack which can be obtained here.

Details about the custom melee weapons can be read about here.

Installation:

- Place the .smx files into your addons/sourcemod/plugins folder.
- Place the .txt files into your addons/sourcemod/translations folder.
- I attached the .sp files for anyone to look at the source. If you click "Get Plugin" it will not compile.
Do you have a vanilla version?
Mr. Man is offline
ilham92-cc-sakura
Senior Member
Join Date: Oct 2008
Location: /var/www/index.html
Old 06-21-2018 , 13:48   Re: [L4D2] Points System (v1.8.0, 2016-04-11)
Reply With Quote #54

Code:
L 06/22/2018 - 01:10:57: SourceMod error session started
L 06/22/2018 - 01:10:57: Info (map "c1m1_hotel") (file "errors_20180622.log")
L 06/22/2018 - 01:10:57: [l4d2_points_system.smx] l4d2_points_system: PrecacheGuns
L 06/22/2018 - 01:10:58: Error log file session closed.
This Points System plugins need Model Precacher

disable this line by add "//"
Code:
if(!bLateLoad) CreateTimer(0.5, PrecacheGuns);
then use Model Precache plugins: Points System + Model Precacher

no more crash, and no more server load map twice!
__________________

Last edited by ilham92-cc-sakura; 06-21-2018 at 13:49.
ilham92-cc-sakura is offline
GuStAvOS
Member
Join Date: Mar 2018
Old 06-26-2018 , 00:30   Re: [L4D2] Points System (v1.8.0, 2016-04-11)
Reply With Quote #55

Hello everyone
they could help me with a problem ...

when compiling I get these errors in a single line ...

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx
SourcePawn Compiler 1.9.0.5921
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2015 AlliedModders LLC

extra/l4d2_skill_detect.inc(269) : error 181: function argument named 'reason' differs from prototype
plugin.sp(297) : warning 217: loose indentation
plugin.sp(29 : warning 217: loose indentation
plugin.sp(339) : warning 213: tag mismatch
plugin.sp(461) : error 001: expected token: ";", but found "["
plugin.sp(461) : error 029: invalid expression, assumed zero
plugin.sp(461) : warning 215: expression has no effect
plugin.sp(461) : error 001: expected token: ";", but found "]"
plugin.sp(461) : fatal error 190: too many error messages on one line

Compilation aborted.
5 Errors.

and here I get this error


Code:
public Action:Event_PlayerDisconnect(Handle:event, String:name[], bool:dontBroadcast)
{
	new client = GetClientOfUserId(GetEventInt(event, "userid", 0));
	//new var1;
	if (client > 0 && !IsFakeClient(client))
	{
		decl String:reason[72];
		GetEventString(event, "reason", reason, 70, "");
		new iTeam;
		if (IsClientInGame(client))
		{
			iTeam = GetClientTeam(client);
		}
		//new var3;
		if (iTeam > 1 && (StrContains(reason, "No Steam logon", false) == -1 && StrContains(reason, "timed out", false) == -1))
		{
			new target;
			new i = 1;
			while (i <= MaxClients)
			{
				//new var4;
				if (IsClientInGame(i) && !IsFakeClient(i) && GetClientTeam(i) == iTeam && i != client)
				{
					//new var5;
					if (iTeam == 2 && IsPlayerAlive(i))
					{
						target = i;
					}
					else
					{
						if (iTeam == 3)
						{
							target = i;
						}
					}
					if (0 < target)
					{
						//new var6;
						if (target > 0 && IsClientInGame(target) && !IsFakeClient(target) && points[client] > 1)
						{
							points[target] = points[client][points[target]];
							points[client] = 0;
						}
					}
				}
				i++;
			}
			//new var6;
			if (target > 0 && IsClientInGame(target) && !IsFakeClient(target) && points[client] > 1)
			{
				points[target] = points[client][points[target]];
				points[client] = 0;
			}
		}
		points[client] = GetConVarInt(StartPoints);
		killcount[client] = 0;
		hurtcount[client] = 0;
		protectcount[client] = 0;
		IsVomitBuy[client] = 0;
		h_ClientLang[client] = 0;
	}
	return Action:0;
}
Thanks in advance
__________________
GuStAvOS is offline
rikka0w0
Member
Join Date: May 2018
Location: Sydney, Australia / Beij
Old 06-30-2018 , 14:00   Re: [L4D2] Points System (v1.8.0, 2016-04-11)
Reply With Quote #56

Even though this plugin have translation files, clients will only see menus and texts in the server's language, most likely English. I`m going to make it support more lanugages -> each client will have a menu in their own language.
rikka0w0 is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 06-30-2018 , 15:37   Re: [L4D2] Points System (v1.8.0, 2016-04-11)
Reply With Quote #57

Quote:
Originally Posted by rikka0w0 View Post
Even though this plugin have translation files, clients will only see menus and texts in the server's language, most likely English. I`m going to make it support more lanugages -> each client will have a menu in their own language.
So far the only problem, and that does not work the translations of Phrases.

Thanks for this.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
rikka0w0
Member
Join Date: May 2018
Location: Sydney, Australia / Beij
Old 07-01-2018 , 05:43   Re: [L4D2] Points System (v1.8.0, 2016-04-11)
Reply With Quote #58

Quote:
Originally Posted by Mi.Cura View Post
So far the only problem, and that does not work the translations of Phrases.

Thanks for this.
This task is not hard at all, but the amount of work needed is huge.
rikka0w0 is offline
rikka0w0
Member
Join Date: May 2018
Location: Sydney, Australia / Beij
Old 07-06-2018 , 10:13   Re: [L4D2] Points System (v1.8.0, 2016-04-11)
Reply With Quote #59

Quote:
Originally Posted by Mi.Cura View Post
So far the only problem, and that does not work the translations of Phrases.

Thanks for this.
Now the points system supports multi-lang localization ~

The sp file is the modified sourcecode, to compile the plugin, you need to download the original repo first: https://bitbucket.org/evilmaniac/points-system/ and replace "l4d2_points_system.sp" with the one in the attachment, then compile all sp files.

The English (Default) translation text file has not been changed, the attached text files are localization for Simplified Chinese, should be put into "sourcemod/translations/chi" folder.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_points_system.sp - 657 views - 116.8 KB)
File Type: txt points_system.phrases.txt (4.1 KB, 335 views)
File Type: txt points_system_menus.phrases.txt (3.3 KB, 309 views)
File Type: smx l4d2_points_system.smx (43.4 KB, 321 views)

Last edited by rikka0w0; 07-06-2018 at 14:23.
rikka0w0 is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 07-06-2018 , 12:31   Re: [L4D2] Points System (v1.8.0, 2016-04-11)
Reply With Quote #60

Thank you so much for this. I'll test it today.

__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura 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 03:32.


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