SA-MP Forums Archive
my server - 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: my server (/showthread.php?tid=509975)



my server - t-wstriker - 29.04.2014

i uploaded gm and its banning everyone can anyone tell me how to fix it


Re: my server - ChuckyBabe - 29.04.2014

Post your script here

Press CTRL + F then write this

public OnPlayerLogin


Re: my server - t-wstriker - 29.04.2014

here it is

Quote:

public OnPlayerLogin(playerid,password[])
{
if(GetPVarInt(playerid, "PlayerLogged") != 0) return true;
new string[128];
format(string, sizeof(string), "users/%s.ini", PlayerName(playerid));
Hash(password);
if(strcmp(DOF2_GetString(string, "Key"), password, true) == 0)
{
if(DOF2_GetInt(string, "Convert") != 5) return Kick(playerid);