login issue
#3

Код:
	if (strcmp(cmd, "/login", true) ==0 )
	{
	    if(IsPlayerConnected(playerid))
	    {
	        new tmppass[64];
			if(gPlayerLogged[playerid] == 1)
			{
				SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are already logged in.");
				return 1;
			}
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /login [password]");
				return 1;
			}
			strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
			Encrypt(tmppass);
			OnPlayerLogin(playerid,tmppass);
		}
		return 1;
	}
Reply


Messages In This Thread
login issue - by vlastikczech - 20.12.2010, 20:20
Re: login issue - by blackwave - 20.12.2010, 20:23
Re: login issue - by vlastikczech - 20.12.2010, 20:51
Re: login issue - by blackwave - 20.12.2010, 20:56
Re: login issue - by hanzen - 20.12.2010, 21:56
Re: login issue - by vlastikczech - 20.12.2010, 22:56
Re: login issue - by vlastikczech - 21.12.2010, 00:07
Re: login issue - by vlastikczech - 21.12.2010, 01:34
Re: login issue - by XePloiT - 21.12.2010, 01:51

Forum Jump:


Users browsing this thread: 1 Guest(s)