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

[ANY] Server maintenance [1.4 06/08/2012]


Post New Thread Reply   
 
Thread Tools Display Modes
eric0279
AlliedModders Donor
Join Date: May 2007
Old 08-06-2012 , 06:35   Re: [ANY] Server maintenance [1.3 20/07/2012]
Reply With Quote #31

Quote:
Originally Posted by Impact123 View Post
@shavit
Just an little help for you, since it looks like you couldn't fix your plugin yet.
Add an "special" like {name} or {PLAYER_NAME}, then strreplace that with the playername if it exist.

Yours sincerely
Impact

Not fixed :s

[IMG]http://img818.**************/img818/6547/snapshot0001a.jpg[/IMG]




Yes I understand that with the GENERIC flag, I would not be kicked but it was to show you the bug on the pseudo simply (line 34).
eric0279 is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 08-06-2012 , 07:56   Re: [ANY] Server maintenance [1.4 06/08/2012]
Reply With Quote #32

It's not my fault if shavit code my suggestions wrong or don't test his scripts before he uploads them :/
Anyways, here is a version that should work.

Yours sincerely
Impact
Attached Files
File Type: sp Get Plugin or Get Source (maintenance.sp - 426 views - 1.7 KB)
__________________

Last edited by Impact123; 08-06-2012 at 07:58.
Impact123 is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 08-06-2012 , 08:12   Re: [ANY] Server maintenance [1.4 06/08/2012]
Reply With Quote #33

Quote:
Originally Posted by Impact123 View Post
It's not my fault if shavit code my suggestions wrong or don't test his scripts before he uploads them :/
Anyways, here is a version that should work.

Yours sincerely
Impact
Actually I test 90% of my scripts, I tested only the first version of that plugin, because after that my hosting company got DDoSed and I can't do anything about it/
Also I'm and idiot that I didn't putted the client variable, you can explain why "OnClientPostAdminCheck(0);" in OnPluginStart?
For now I'll try to obtain a free server to test plugins.
__________________
retired
shavit is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 08-06-2012 , 08:22   Re: [ANY] Server maintenance [1.4 06/08/2012]
Reply With Quote #34

That OnClientPostAdminCheck was my debugging, i was too lazy to connect.
Must have forgot to remove it, but you now know how to write it correctly and can fix it yourself.
Also i suggest you to setup an local environment for testing plugins.

Yours sincerely
Impact
__________________

Last edited by Impact123; 08-06-2012 at 08:30.
Impact123 is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 08-06-2012 , 09:14   Re: [ANY] Server maintenance [1.4 06/08/2012]
Reply With Quote #35

Quote:
Originally Posted by Impact123 View Post
That OnClientPostAdminCheck was my debugging, i was too lazy to connect.
Must have forgot to remove it, but you now know how to write it correctly and can fix it yourself.
Also i suggest you to setup an local environment for testing plugins.

Yours sincerely
Impact
Good idea, I'm downloading HLDSUpdateTool right now, would be easier for me to test.
__________________
retired
shavit is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 08-06-2012 , 14:07   Re: [ANY] Server maintenance [1.4 06/08/2012]
Reply With Quote #36

Quote:
Originally Posted by Impact123 View Post
It's not my fault if shavit code my suggestions wrong or don't test his scripts before he uploads them :/
Anyways, here is a version that should work.

Yours sincerely
Impact
I accuse you of anything, I just try to make to help my community by reporting bugs encountered, if after the author makes his own way or be insulting, I would say more I would go there and ask a support to my friends.


I purposely added your login to the test plug attached in your reply:

sm plugins list:
Quote:
"Server Maintenance" (1.4) and by Timebomb Impact123
sm_who:
Quote:
1. Let's Go! none
plugin.maintenance.cfg:
Code:
 / / This file self-generated by WAS SourceMod (v1.4.4)
 / / Convars for plugin "maintenance.smx"


 / / "Server maintenance" is enabled?
 / / -
 / / Default: "1"
 / / Minimum: "0.000000"
 / / Maximum: "1.000000"
 sm_maintenance_enabled "1"

 / / Kick Reason if the plugin is enabled. [Do not add dot at the end, {name} - Player's name.]
 / / -
 / / Default: "{name} Hey there, this server is Under Maintenance and admins are Allowed to join only"
 / / Minimum: "0.000000"
 / / Maximum: "1.000000"
 sm_maintenance_kick_reason "{name} Hey there, this server is Under Maintenance and admins are Allowed to join only"
No error in logs folder but I 'm not connected and kicked ...
eric0279 is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 08-06-2012 , 21:29   Re: [ANY] Server maintenance [1.4 06/08/2012]
Reply With Quote #37

Quote:
Originally Posted by eric0279 View Post
I accuse you of anything, I just try to make to help my community by reporting bugs encountered, if after the author makes his own way or be insulting, I would say more I would go there and ask a support to my friends.


I purposely added your login to the test plug attached in your reply:

sm plugins list:
sm_who:
plugin.maintenance.cfg:
Code:
 / / This file self-generated by WAS SourceMod (v1.4.4)
 / / Convars for plugin "maintenance.smx"


 / / "Server maintenance" is enabled?
 / / -
 / / Default: "1"
 / / Minimum: "0.000000"
 / / Maximum: "1.000000"
 sm_maintenance_enabled "1"

 / / Kick Reason if the plugin is enabled. [Do not add dot at the end, {name} - Player's name.]
 / / -
 / / Default: "{name} Hey there, this server is Under Maintenance and admins are Allowed to join only"
 / / Minimum: "0.000000"
 / / Maximum: "1.000000"
 sm_maintenance_kick_reason "{name} Hey there, this server is Under Maintenance and admins are Allowed to join only"
No error in logs folder but I 'm not connected and kicked ...
Do you sure that you have Sourcemod installed normally?
Its doing spaces each commented lines, and it shows WAS Sourcemod.
__________________
retired
shavit is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 08-06-2012 , 21:51   Re: [ANY] Server maintenance [1.4 06/08/2012]
Reply With Quote #38

I've 50 plugins, 13 extensions without error.

meta list :
Quote:
Listing 6 plugins:
[01] SourceMod (1.4.4) by AlliedModders LLC
[02] Stripper (1.2.2) by BAILOPAN
[03] Left 4 Downtown 2 Extension (0.5.3) by Igor "Downtown1" Smirnov / Andrew "XBetaAlpha" Burrows / AtomicStryker / Michael "ProdigySim" Busby
[04] SMRCon (1.2.1) by psychonic
[05] SDK Tools (1.4.4) by AlliedModders LLC
[06] SDK Hooks (2.2.0) by Tsunami, psychonic

So if SourceMod will not work, the plugins would not work

Last edited by eric0279; 08-06-2012 at 21:55.
eric0279 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 20:39.


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