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

GeoIP Language Selection


Post New Thread Reply   
 
Thread Tools Display Modes
Danny_l4d
Senior Member
Join Date: Feb 2010
Old 05-04-2011 , 08:19   Re: [ANY] GeoIP Language Selection
Reply With Quote #11

Using the latest, or do i need to use latest stable version?

PHP Code:
SourceMod Version Information:
             
SourceMod Version1.4.0-dev
             SourcePawn Engine
SourcePawn 1.1jit-x86 (build 1.4.0-dev)
             
SourcePawn APIv1 4v2 3
             Compiled on
Oct 29 2010 21:05:23
             Build ID
3146:0785a5a1316d-dev
             http
://www.sourcemod.net/ 

PHP Code:
Metamod:Source version 1.9.0-dev
         Build ID
737:4b23748093b1-dev
         Loaded 
As: Valve Server Plugin
         Compiled on
Oct 29 2010
         Plugin 
interface version15:14
         SourceHook version
5:5
         http
://www.metamodsource.net/ 
__________________
Danny_l4d is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 05-04-2011 , 08:28   Re: [ANY] GeoIP Language Selection
Reply With Quote #12

Quote:
Originally Posted by Danny_l4d View Post
Using the latest, or do i need to use latest stable version?
It was also added in the Dev builds, but you would need 1.4.0-hg3213 or later. Your build looks fairly old.
GoD-Tony is offline
Danny_l4d
Senior Member
Join Date: Feb 2010
Old 05-04-2011 , 20:53   Re: [ANY] GeoIP Language Selection
Reply With Quote #13

Works like a charm now thanks a lot
__________________
Danny_l4d is offline
nicoh93
Member
Join Date: Apr 2010
Old 05-05-2011 , 10:31   Re: [ANY] GeoIP Language Selection
Reply With Quote #14

Thank you for your plugin!

I have a plugin with a panel and if the client is currently viewing a menu, wait for it to disappear.
In your panel, if the client presses any key (1,2,3,4,5,6...) the panel disappears, but does not end

MENU_TIME_FOREVER

Greetings!
nicoh93 is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 05-05-2011 , 12:55   Re: [ANY] GeoIP Language Selection
Reply With Quote #15

Quote:
Originally Posted by nicoh93 View Post
I have a plugin with a panel and if the client is currently viewing a menu, wait for it to disappear.
In your panel, if the client presses any key (1,2,3,4,5,6...) the panel disappears, but does not end
I don't quite understand the problem. The language selection menu shouldn't affect other menus after it has disappeared. MENU_TIME_FOREVER only means that the menu will be displayed forever if the user doesn't press a button.

In what way are you detecting if a menu is already open?
GoD-Tony is offline
psychonic

BAFFLED
Join Date: May 2008
Old 05-05-2011 , 13:05   Re: [ANY] GeoIP Language Selection
Reply With Quote #16

@GoD-Tony

In the Timer_LanguageHelp, you should probably make sure that the client is still ingame (else it will error if they disconnected within that five second period.

A better way is to just send either the client userid or client serial through to the callback. If either resolves back to 0 when getting the client, you can assume that they left. On longer timers, they also helps protect against performing an action on a valid, yet different client that joined at the same index after one leaves.
psychonic is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 05-05-2011 , 13:09   Re: [ANY] GeoIP Language Selection
Reply With Quote #17

Quote:
Originally Posted by psychonic View Post
In the Timer_LanguageHelp, you should probably make sure that the client is still ingame (else it will error if they disconnected within that five second period.
I kill the timer if it still exists during OnClientDisconnect. Although a lot of people seem to pass the userid for timers, this is just how I learned it from the wiki a while ago. I can change it if it's considered bad code to do it this way.
GoD-Tony is offline
psychonic

BAFFLED
Join Date: May 2008
Old 05-05-2011 , 13:21   Re: [ANY] GeoIP Language Selection
Reply With Quote #18

Quote:
Originally Posted by GoD-Tony View Post
I kill the timer if it still exists during OnClientDisconnect. Although a lot of people seem to pass the userid for timers, this is just how I learned it from the wiki a while ago. I can change it if it's considered bad code to do it this way.
No, your way is fine. I just overlooked it.
psychonic is offline
sosi_alliedmodders
Junior Member
Join Date: Mar 2011
Old 08-06-2011 , 07:10   Re: [ANY] GeoIP Language Selection
Reply With Quote #19

this plugin use sdk hooks?
sosi_alliedmodders is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 02-28-2012 , 10:11   Re: GeoIP Language Selection
Reply With Quote #20

Update released.
Quote:
GeoIP Language Selection 1.2.0
- Added support for automatic updates via Updater.
- Made clientprefs optional.
- Removed colours in chat notifications.
- Internal code changes and clean up.
I changed the example in the first post from Estonian to Greek. Apparently a large amount of Greek servers replace all of their English SM files with Greek, when they could be using both.
__________________

Last edited by GoD-Tony; 02-28-2012 at 10:21.
GoD-Tony 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:07.


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