SA-MP Forums Archive
IP restriction? - 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)
+--- Thread: IP restriction? (/showthread.php?tid=485301)



IP restriction? - Jason_Roul - 03.01.2014

So, I got this database along with this game-mode, many people are unable to join since there's a lot of banned fields in over 10000 players with Banned = 1 how to change it all to Banned = 0?


Re: IP restriction? - driftg0d - 03.01.2014

Try that:

Code:
for(new i; i<GetMaxPlayers(); i++)
{
	PlayerData[i][pBan] = 0; //Replace with your actual variables.
	return 1;
}



Re: IP restriction? - Jason_Roul - 03.01.2014

It's for some reason not letting certain people join.


Re: IP restriction? - driftg0d - 03.01.2014

Can you please give me the OnPlayerConnect then?

PS: it should work, but let me see the code if it doesn't.

Oh, and include the "ban" variable