Auto Login after register? - 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: Auto Login after register? (
/showthread.php?tid=89132)
Auto Login after register? -
Ben147 - 31.07.2009
Код:
if(gPlayerAccount[playerid] == 0)
{
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "SERVER: You must register before logining.");
return 1;
}
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "SERVER: You are already logged in.");
return 1;
}
new tmppass[64];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
// What should i need to add? for auto login
return 1;
}
Here is my script like i said in the script What should i need to add for auto login after register