PDA

View Full Version : Only allow players from certain country's


nickbouwhuis
25/11/2012, 12:41 PM
Hey everyone!

I want my server to be accesable from only the Netherlands, Germany and Belgium. How can I do this?

Thanks!

-Nick

NicholasA
25/11/2012, 12:45 PM
Hey everyone!

I want my server to be accesable from only the Netherlands, Germany and Belgium. How can I do this?

Thanks!

-Nick

You could make a kinda quiz at the start when the join they have questions like:

Vraag 1: Wat is de correcte manier om iemand te groeten

A. HEY LEKKERE BALZAK!
B. Hey hoe gaat ie?
C. Hallo kutkop ik hoop dat je word gecastreerd.

--------------------------------------------------

Vraag 2: Carglass repareert ...

A. Carglass likt poep.
B. Carglass vervangt.
C. Carglass neukt honden.

Hope youve got an idea of what i mean

Skimmer
25/11/2012, 12:45 PM
See this. http://forum.sa-mp.com/showthread.php?t=32509
Using,
GetPlayerCountryName(playerid);
if(!strcmp(GetPlayerCountryName(playerid), "Germany") || !strcmp(GetPlayerCountryName(playerid), "Belgium") || !strcmp(GetPlayerCountryName(playerid), "Netherlands"))
{
// Welcome
}
else
{
// Kick, you can't play this server
}

nickbouwhuis
25/11/2012, 12:55 PM
See this. http://forum.sa-mp.com/showthread.php?t=32509
Using,
GetPlayerCountryName(playerid);
if(!strcmp(GetPlayerCountryName(playerid), "Germany") || !strcmp(GetPlayerCountryName(playerid), "Belgium") || !strcmp(GetPlayerCountryName(playerid), "Netherlands"))
{
// Welcome
}
else
{
// Kick, you can't play this server
}

The download links for that plugin are down :(

Skimmer
25/11/2012, 01:06 PM
EDIT: http://www.bergfiles.com/i/bf4ddc21ebh32i0

nickbouwhuis
25/11/2012, 05:17 PM
EDIT: http://www.bergfiles.com/i/bf4ddc21ebh32i0

Thanks! Works for me!

nickbouwhuis
26/11/2012, 02:33 PM
EDIT: http://www.bergfiles.com/i/bf4ddc21ebh32i0

I removed it. It also kicked a lot of people that are actually from the Netherlands. Can I fix this?

nickbouwhuis
01/12/2012, 02:42 PM
Can someone help me to get this working?