|
|
#1 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2008
Location: Sweden
Posts: 1,669
Reputation: 969
|
hey,
This will provide functionality to get what country a player is from. You can get the country name, code, and index (you can use the index and match it against a bunch of constants, example below). No plug-ins, databases, or anything needed! ![]() What you have to do
pawn Code:
pawn Code:
See this link: http://slice.pastebay.org/109849 Last edited by Slice; 11/10/2011 at 07:50 AM. |
|
|
|
|
|
#2 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jun 2009
Posts: 202
Reputation: 1
|
Very nice !
Salut = French but you put case COUNTRY_RO ?? not case COUNTRY_FR ? |
|
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2008
Location: Sweden
Posts: 1,669
Reputation: 969
|
According to Google, Romanian people also say salut.
|
|
|
|
|
|
#4 |
|
Banned
![]() Join Date: Nov 2010
Location: Afrika
Posts: 64
Reputation: 5
|
|
|
|
|
|
|
#5 |
|
Big Clucker
![]() ![]() Join Date: Nov 2008
Location: Estonia
Posts: 134
Reputation: 0
|
Im from Estonia
Code:
[14:49:16] Test: mmrk connected from sweaden pawn Code:
|
|
|
|
|
|
#6 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Sep 2010
Posts: 349
Reputation: 9
|
Do you have and the Serbian language?
Sory for my bad English I found |
|
|
|
|
|
#7 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2008
Location: Sweden
Posts: 1,669
Reputation: 969
|
|
|
|
|
|
|
#8 |
|
Big Clucker
![]() ![]() Join Date: Nov 2008
Location: Estonia
Posts: 134
Reputation: 0
|
Works now.
Code:
[15:18:17] Test: mmrk connected from estonia |
|
|
|
|
|
#9 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2008
Location: Sweden
Posts: 1,669
Reputation: 969
|
You're probably just testing with the switch statement, but just to make sure I thought I'd mention you should do it like this:
pawn Code:
The country index should be used for stuff like this (well, preferably not ):pawn Code:
|
|
|
|
|
|
#10 |
|
Godfather
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Mar 2008
Posts: 5,609
Reputation: 377
|
LOL, at the code above, this could be a racist script, i mean they can ban a whole country.
Very nice. And yes "Salut" means in English Haiiiii tharrr durr durr. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Plugin] GeoIP Plugin v0.1.4 (Country detector) - 04/05/2008 | Totto8492 | Plugin Development | 197 | 28/04/2013 02:35 PM |