Change Password Help
#5

Код:
if(strcmp(cmd, "/changepass", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
		    if(gPlayerLogged[playerid] == 0)
		    {
		        SendClientMessage(playerid, COLOR_GREY, "   You need to login first.");
		        return 1;
		    }
		    else
		    {
		    	SendClientMessage(playerid, COLOR_GREY, " ");
			}
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /changepass [password]");
				return 1;
			}
			strmid(PlayerInfo[playerid][pKey], tmp, 0, strlen(cmdtext), 255);
			OnPlayerUpdate(playerid);
			SendClientMessage(playerid, COLOR_YELLOW, "   Password has been changed successfuly");
		}
		return 1;
	}
Reply


Messages In This Thread
Change Password Help - by Badger(new) - 04.06.2009, 21:19
Re: Change Password Help - by lol2112 - 04.06.2009, 23:33
Re: Change Password Help - by Badger(new) - 05.06.2009, 07:55
Re: Change Password Help - by lol2112 - 05.06.2009, 10:09
Re: Change Password Help - by Steve'95' - 30.03.2011, 13:12

Forum Jump:


Users browsing this thread: 2 Guest(s)