SA-MP Forums Archive
Help me this - 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: Help me this (/showthread.php?tid=148825)



Help me this - David-Sean - 19.05.2010

how to make Register...
Example
Help me please!!!
how to make this!!

My new script in SA-MP 0.3 (login & register v0.1) ByuRKH3iM


Re: Help me this - iJumbo - 19.05.2010

with ShowPlayerDialog OnDialogResponse and dini ....


Re: Help me this - David-Sean - 19.05.2010

Okay Lest Me try it


Re: Help me this - David-Sean - 19.05.2010

Sorry for double post here is my code i dont know how to put it,
sorry for my bad english..

Код:
	if (strcmp(cmd, "/login", true) == 0)
	{
 		if(!IsPlayerNPC(playerid))
  		{
			if(IsPlayerConnected(playerid))
		  {
		    new tmppass[64];
				if(gPlayerLogged[playerid] == 1)
				{
					SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "SERVER: You are already logged in.");
					return 1;
				}
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /login [password]");
					return 1;
				}
				strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
				//Encrypt(tmppass);
				OnPlayerLogin(playerid,tmppass);
				GetPlayerName(playerid,sendername,sizeof(sendername));
				new playersip[128];
				GetPlayerIp(playerid,playersip,sizeof(playersip));
				new d,m,y;
				new h,mi,s;
				getdate(y,m,d);
				gettime(h,mi,s);
				format(string,sizeof(string),"(%d/%d/%d)[%d:%d:%d] %s Has Logged In [IP: %s]",d,m,y,h,mi,s,sendername, playersip);
				LoginLog(string);
			}
		}
		return 1;
	}



Re: Help me this - iJumbo - 19.05.2010

and you want to use it as dialog?


Re: Help me this - David-Sean - 19.05.2010

yes..
help me!!


Re: Help me this - iJumbo - 19.05.2010

use dcmd


Re: Help me this - David-Sean - 19.05.2010

oh okay.
Lest me test..