27.09.2010, 13:20
Can someone help me
I want to make it at the beginning when the player connects
If player is from specific state
to be kicked or something
public OnPlayerConnect(playerid, reason)
{
new countryname[64];
GetPlayerCountryName(playerid, countryname, sizeof(countryname));
if(!strcmp(countryname, "Albania", true))
{
Kick(playerid);
SendClientMessage(playerid, 0xFFCFCFAA, "not allowed for players from Albania");
return 1;
}
return 1;
}
something like this
but this does not work
I want to make it at the beginning when the player connects
If player is from specific state
to be kicked or something
public OnPlayerConnect(playerid, reason)
{
new countryname[64];
GetPlayerCountryName(playerid, countryname, sizeof(countryname));
if(!strcmp(countryname, "Albania", true))
{
Kick(playerid);
SendClientMessage(playerid, 0xFFCFCFAA, "not allowed for players from Albania");
return 1;
}
return 1;
}
something like this
but this does not work