Need Help Plz
#5

ok that worked but how would i go with adding that to my login command here is the code...
Код:
dcmd_login(playerid, params[])
{
  if(gPlayerInfo[playerid][PLAYER_REGGED] == 1)
	{ 
  if(gPlayerInfo[playerid][PLAYER_LOGGED] == 0)
  {
	if(password2 == gPlayerInfo[playerid][PLAYER_PASS])
	{
	  gPlayerInfo[playerid][PLAYER_LOGGED] = 1;
	  SendClientMessage(playerid, COLOUR_LIGHTBLUE, "You have successfully logged in to your account.");
	  OnPlayerLogin(playerid);
	}
	else
	{
	  SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: Incorrect password.");
  }
	}
	else
	{
   SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: You Are Alredy logged in.");
	}
	}
  else
  {
  SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: You must register first to do that! Use /register [password] to register and login.");
  }
}
Reply


Messages In This Thread
Need Help Plz - by sggassasin - 03.02.2010, 11:14
Re: Need Help Plz - by smeti - 03.02.2010, 12:24
Re: Need Help Plz - by sggassasin - 04.02.2010, 01:13
Re: Need Help Plz - by Eazy_Efolife - 04.02.2010, 01:15
Re: Need Help Plz - by sggassasin - 04.02.2010, 01:22
Re: Need Help Plz - by sggassasin - 05.02.2010, 02:04
Re: Need Help Plz - by Miguel - 05.02.2010, 05:37

Forum Jump:


Users browsing this thread: 1 Guest(s)