GetPlayerIp and set skin choose
#1

How i can make that a player from Croatia can use just skin id 0, 1, 2 or if he is from serbia just 3, 4, 5.



if(GetPlayerIp(playerid) == and the ip of someone who lives in Croatia)
public SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0 || classid == 1 || classid == 2 )
{
gTeam[playerid] = TEAM_CRO;
}

else if GetPlayerIp(playerid) == and the ip of someone who lives in Serbia)
{
else if (classid == 3 || classid == 4 || classid == 5 )

{
gTeam[playerid] = TEAM_SERBIA;
}
return 1;

}
Reply
#2

You either need to use the GEO-IP plugin or Filterscript, I've seen both floating around recently. Then you need to compare the result it gives with the country you're after (strcmp) and take it from there.
Reply
#3

See my signatures for the FS ...and configure it for your use
Reply
#4

Dont know how to make that
Reply
#5

Quote:
Originally Posted by Frankox
Dont know how to make that
Download GEO-IP filterscript and read it's topic to learn how to use it.
Reply
#6

Readed it but dont know how to make that a player from Croatia can use just he skins which are for players from Croatia
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)