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

Team Ban


Post New Thread Reply   
 
Thread Tools Display Modes
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 02-10-2011 , 20:33   Re: Team Ban
Reply With Quote #11

* DarthNinja slaps Azelphur around a bit with LoadTranslations("common.phrases"); and AddCommandListener.
__________________
DarthNinja is offline
Azelphur
AlliedModders Donor
Join Date: Jun 2010
Old 02-10-2011 , 20:52   Re: Team Ban
Reply With Quote #12

Quote:
Originally Posted by SpazShot View Post
Code:
L 02/09/2011 - 19:31:32: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 02/09/2011 - 19:31:32: [SM] Native "ReplyToCommand" reported: Language phrase "No matching client" not found
L 02/09/2011 - 19:31:32: [SM] Displaying call stack trace for plugin "teamban.smx":
L 02/09/2011 - 19:31:32: [SM]   [0]  Line 103, /groups/sourcemod/compiler-1.3/include/commandfilters.inc::ReplyToTargetError()
L 02/09/2011 - 19:31:32: [SM]   [1]  Line 198, /groups/sourcemod/compiler-1.3/include/helpers.inc::FindTarget()
L 02/09/2011 - 19:31:32: [SM]   [2]  Line 312, /home/groups/alliedmodders/forums/files/8/0/1/8/0/81936.attach::Command_Teamban()
L 02/09/2011 - 19:38:55: Error log file session closed.
Is this a problem?
Quote:
Originally Posted by DarthNinja View Post
* DarthNinja slaps Azelphur around a bit with LoadTranslations("common.phrases"); and AddCommandListener.
Fixed
__________________
Azelphur is offline
SpazShot
Senior Member
Join Date: Nov 2009
Old 02-27-2011 , 00:37   Re: Team Ban
Reply With Quote #13

Hey plugin has been of great use, thanks for making it!

Small problem:

• Rare bug: When team banning a CT while alive sometimes it will not slay them. However after the team banned player rejoins, he is team banned. So it's only a minor glitch in slaying an alive player when team banned. Just happened about 5 minutes ago.
SpazShot is offline
Azelphur
AlliedModders Donor
Join Date: Jun 2010
Old 02-27-2011 , 11:56   Re: Team Ban
Reply With Quote #14

Quote:
Originally Posted by SpazShot View Post
Hey plugin has been of great use, thanks for making it!

Small problem:

• Rare bug: When team banning a CT while alive sometimes it will not slay them. However after the team banned player rejoins, he is team banned. So it's only a minor glitch in slaying an alive player when team banned. Just happened about 5 minutes ago.
I just call ChangeClientTeam() and the documentation says "On CS:S, this will kill the player.", so it could be a bug in my code with regards to not calling ChangeClientTeam, or something wrong with SM. Without being able to replicate the bug I can't fix it, though
__________________
Azelphur is offline
poppin-fresh
AlliedModders Donor
Join Date: Aug 2010
Old 03-06-2011 , 00:15   Re: Team Ban
Reply With Quote #15

When i try and load it. I get the following error
[SM] Plugin teamban.smx failed to load: Required extension "Client Preferences" file("clientprefs.ext") not running.

And after i resatrted the server and checked to see if clientprefs.ext was running, it was. And i still got the same error.

Any ideas :S

EDIT: Has been tested on 3 servers. and its for CS:S

Last edited by poppin-fresh; 03-06-2011 at 03:16.
poppin-fresh is offline
Azelphur
AlliedModders Donor
Join Date: Jun 2010
Old 03-06-2011 , 11:40   Re: Team Ban
Reply With Quote #16

Quote:
Originally Posted by poppin-fresh View Post
When i try and load it. I get the following error
[SM] Plugin teamban.smx failed to load: Required extension "Client Preferences" file("clientprefs.ext") not running.

And after i resatrted the server and checked to see if clientprefs.ext was running, it was. And i still got the same error.

Any ideas :S

EDIT: Has been tested on 3 servers. and its for CS:S
1) Why did this require a PM and a forum post?
2) How have you determined that clientprefs.ext is running exactly?
__________________
Azelphur is offline
poppin-fresh
AlliedModders Donor
Join Date: Aug 2010
Old 03-06-2011 , 16:19   Re: Team Ban
Reply With Quote #17

Quote:
Originally Posted by Azelphur View Post
1) Why did this require a PM and a forum post?
2) How have you determined that clientprefs.ext is running exactly?
Sorry about the pm.
It turns out that its not getting the information from the database.

[08] file "clientprefs.ext.dll": Could not find "clientprefs" or "default" database configs

Here is my databases.

Code:
"Databases" 
{ 
    "driver_default"        "mysql" 
     
  "sourcebans" 
    { 
        "driver"            "default" 
        "host"                "xxxxxxxx" 
        "database"            "xxxxxxxx" 
        "user"                "xxxxxxxx" 
        "pass"                "xxxxxxxx" 
        //"timeout"            "0" 
        "port"            "3306" 
    } 
   

   } 


    "default" 
    { 
        "driver"            "default" 
        "host"                "localhost" 
        "database"            "sourcemod" 
        "user"                "root" 
        "pass"                "" 
        //"timeout"            "0" 
        //"port"            "0" 
    } 
     
    "storage-local" 
    { 
        "driver"            "sqlite" 
        "database"            "sourcemod-local" 
    } 

    "clientprefs" 
    { 
        "driver"            "sqlite" 
        "host"                "localhost" 
        "database"            "clientprefs-sqlite" 
        "user"                "root" 
        "pass"                "" 
        //"timeout"            "0" 
        //"port"            "0" 
          
    
    } 
}
So i dont know why its not running :S

Last edited by poppin-fresh; 03-06-2011 at 16:22.
poppin-fresh is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 03-07-2011 , 06:55   Re: Team Ban
Reply With Quote #18

Quote:
Originally Posted by poppin-fresh View Post
Sorry about the pm.
It turns out that its not getting the information from the database.

[08] file "clientprefs.ext.dll": Could not find "clientprefs" or "default" database configs

Here is my databases.

Code:
"Databases" 
{ 
    "driver_default"        "mysql" 
     
  "sourcebans" 
    { 
        "driver"            "default" 
        "host"                "xxxxxxxx" 
        "database"            "xxxxxxxx" 
        "user"                "xxxxxxxx" 
        "pass"                "xxxxxxxx" 
        //"timeout"            "0" 
        "port"            "3306" 
    } 
   

   } 


    "default" 
    { 
        "driver"            "default" 
        "host"                "localhost" 
        "database"            "sourcemod" 
        "user"                "root" 
        "pass"                "" 
        //"timeout"            "0" 
        //"port"            "0" 
    } 
     
    "storage-local" 
    { 
        "driver"            "sqlite" 
        "database"            "sourcemod-local" 
    } 

    "clientprefs" 
    { 
        "driver"            "sqlite" 
        "host"                "localhost" 
        "database"            "clientprefs-sqlite" 
        "user"                "root" 
        "pass"                "" 
        //"timeout"            "0" 
        //"port"            "0" 
          
    
    } 
}
So i dont know why its not running :S
That shouldn't be there.
__________________
Peace-Maker is offline
poppin-fresh
AlliedModders Donor
Join Date: Aug 2010
Old 03-07-2011 , 09:19   Re: Team Ban
Reply With Quote #19

Quote:
Originally Posted by Peace-Maker View Post
That shouldn't be there.
Thank you. I can't believe i missed that.
poppin-fresh is offline
xrefresh
SourceMod Donor
Join Date: Apr 2011
Old 04-07-2011 , 00:10   Re: Team Ban
Reply With Quote #20

Are you able to use a steam id if the player is no longer in the server? I tried using a steam id but it said it couldn't be found.
xrefresh 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 17:59.


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