AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   how can i get this message [L4D] (https://forums.alliedmods.net/showthread.php?t=104376)

lovemf 09-22-2009 15:15

how can i get this message [L4D]
 
my server has new map for l4d,but l4d can't auto download map

so if client not have this map,if he connect server will show he "Your String differs from server."

i try

Code:

public bool:OnClientConnect(client, String:rejectmsg[], maxlen)
{
 
if( StrContains(rejectmsg, "Your String differs from server", false)!= -1)
{
strcopy(rejectmsg, maxlen, "please visit xxxxx");
return false;
}
return true;
}

but is not work.thanks sorry my bad english.

lovemf 09-23-2009 02:43

Re: how can i get this message [L4D]
 
please help me,thanks

Frus 09-23-2009 06:20

Re: how can i get this message [L4D]
 
I believe the error message is closer to "Your string table differs from server", but I don't think that's exactly it. Make sure you look over the error message and it is the exact same.

Other than that, I couldn't tell you if what you are trying to do with the code will work.

lovemf 09-23-2009 11:48

Re: how can i get this message [L4D]
 
Quote:

Originally Posted by Frus (Post 941304)
I believe the error message is closer to "Your string table differs from server", but I don't think that's exactly it. Make sure you look over the error message and it is the exact same.

Other than that, I couldn't tell you if what you are trying to do with the code will work.

Yes you are right,I'm sorry about this.

I check error message again is "Your string table differs from server"

lovemf 09-25-2009 04:32

Re: how can i get this message [L4D]
 
- -!!

lol

someone can help me pls..

olj 09-25-2009 07:18

Re: how can i get this message [L4D]
 
Ummm, i actually dont know if we can change that message. Can we? We can send them new one though (maybe to client's console).

raydan 09-25-2009 08:02

Re: how can i get this message [L4D]
 
Quote:

Originally Posted by olj (Post 942915)
Ummm, i actually dont know if we can change that message. Can we? We can send them new one though (maybe to client's console).

change engine.dll or server.dll content?

olj 09-25-2009 09:19

Re: how can i get this message [L4D]
 
You need to script this in C++ as a Metamod plugin then. Or as an extension to SourceMod. Cant help there.


All times are GMT -4. The time now is 19:05.

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