SA-MP Forums Archive
GetPlayerIp and set skin choose - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GetPlayerIp and set skin choose (/showthread.php?tid=86334)



GetPlayerIp and set skin choose - Frankox - 13.07.2009

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;

}


Re: GetPlayerIp and set skin choose - Weirdosport - 13.07.2009

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.


Re: GetPlayerIp and set skin choose - abhinavdabral - 13.07.2009

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


Re: GetPlayerIp and set skin choose - Frankox - 13.07.2009

Dont know how to make that


Re: GetPlayerIp and set skin choose - Correlli - 13.07.2009

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.


Re: GetPlayerIp and set skin choose - Frankox - 13.07.2009

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