How can i login without this?[rep]
#1

i need help i tried everything i tried it for 3 hours..i want to login without being showed the terms and conditions..i bought gamemode but cant find owner



Код:
  public OnPlayerRequestClass(playerid, classid)
		 {
		        new string[768];
				PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
				PlayerInfo[playerid][pModel] = Peds[classid][0];
			    if(IsPlayerNPC(playerid))
				{
				    SpawnPlayer(playerid);
					return 1;
				}
				if (gPlayerLogged[playerid] != 1)
				{
                    ClearChatbox(playerid, 10);
			    	SendClientMessage(playerid, COLOR_YELLOW2, " ");
                    new message[] = "\t\t\t\t\t\t Regurile! \n\n\n\n\n\n 1- Serverul asta Nu este nicio COPIE dupa ALT GM!\n\n Daca Folositi Hack-uri.Veti primi automat Ban Permanent.";
					new message2[] = "\n\n 3- By Reading this, you agree to Follow all server /rules with risk of being kicked or banned by breaking them.\n\n 4- Forumul este in Constructie.\n\n\n Nu faceti Dm Auirea.\n\n\n Press on 'Agree' If you Agree, 'Refuse' If you refuse.";
					format(string, sizeof(string),"%s %s",message,message2);
                    ShowPlayerDialog(playerid, 1244, DIALOG_STYLE_MSGBOX,"<changeme 1234> Conditiile",string,"Agree","Refu");
					SetPlayerCameraPos(playerid, 1363.3137,-1276.4448,21.6530);
					SetPlayerCameraLookAt(playerid, 1285.9583,-1219.0508,104.1589);
					//PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
					PlayerInfo[playerid][pModel] = Peds[classid][0];
					SetPlayerTeamFromClass(playerid,classid);
				}
				else
				{
					SpawnPlayer(playerid);
				}
				return false;
			}
if you need an diffrent cmd just reply and ile give it.just help me please
Reply
#2

pawn Код:
public OnPlayerRequestClass(playerid, classid)
         {
                new string[768];
                PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
                PlayerInfo[playerid][pModel] = Peds[classid][0];
                if(IsPlayerNPC(playerid))
                {
                    SpawnPlayer(playerid);
                    return 1;
                }
                if (gPlayerLogged[playerid] != 1)
                {
                    ClearChatbox(playerid, 10);
                    SendClientMessage(playerid, COLOR_YELLOW2, " ");
                    SetPlayerCameraPos(playerid, 1363.3137,-1276.4448,21.6530);
                    SetPlayerCameraLookAt(playerid,1285.9583,-1219.0508,104.1589);
                    //PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
                    PlayerInfo[playerid][pModel] = Peds[classid][0];
                    SetPlayerTeamFromClass(playerid,classid);
                }
                else
                {
                    SpawnPlayer(playerid);
                }
                return false;
            }
Reply
#3

then i can login then the login appears??
Reply
#4

it appears like this ...do you need login??and i cant login look at picture please..
http://imageshack.us/photo/my-images/534/samp053ue.png/
Reply
#5

If u want to Login without this http://imageshack.us/photo/my-images/534/samp053ue.png/
so do this
Quote:

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}

Reply
#6

still no work the login dialog doesent appear here you just change location but the login and register doesent appear..

Код:
if(dialogid == 1244)
					{
                        if(response)
					    {
							if (gPlayerAccount[playerid] != 0)
							{
			                    ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,"Bine ai venit, Va rugam sa va Logati","Logheaza-te!","Login","Kick");
							}
							else
							{
			                    ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_INPUT,"Bine ai venit, Va rugam sa va inregistrati","Inregistreaza-te!","Register","Kick");
							}
							new y, m, d;
							new h,mi,s;
							getdate(y,m,d);
							gettime(h,mi,s);
			                format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has accepted the terms and conditions.",d,m,y,h,mi,s,sendername);
							LoginLog(string);
                        }
                        else
						{
						    SendClientMessage(playerid, COLOR_GREY,"* You selected \"Refuse\", To play you must agree to the terms of condition");
							Kick(playerid);
						}
					}
					if(dialogid == 333)
					{
					    if(response)
					    {
					        if(listitem == 0)
					        {
					            strmid(Typed[playerid], "None", 0, strlen("None"), 255);
					            ShowPlayerDialog(playerid, 335, DIALOG_STYLE_INPUT,"Scrietiva Parola, Va rugam sa va scrieti parola pentru binele vostru","Scrieti-va incodata Parola.","Ok","Cancel");
							}
if it works..you have an rep!
Reply
#7

Will U Plz post this line of your game mod example:
public OnPlayerConnect(playerid)
{
return 1;
}
Reply
#8

this ??

Код:
public OnPlayerConnect(playerid)
			{
				new string[128];
				new string2[128];
			    new plname[MAX_PLAYER_NAME];
			    new playersip[64];
			    new zone[MAX_ZONE_NAME];
			    new bancheck[64];
			    new msg2[128];
			    new y, m, d;
				new h,mi,s;
				getdate(y,m,d);
				gettime(h,mi,s);
			    GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
			    GetPlayerName(playerid, plname, sizeof(plname));
			    GetPlayerIp(playerid,playersip,sizeof(playersip));
			    new namestring = strfind(plname, "_", true);
			    format(string, sizeof(string),"%s",playersip);
			    gPlayerUsingLoopingAnim[playerid] = 0;
				gPlayerAnimLibsPreloaded[playerid] = 0;

				if(AntiName == 1)
				{
			   if(namestring == -1)
			  {
			            format(string, sizeof(string),"%s, Has been kicked by the Anticheat Peter Griffin for Having an Unvalid Name",plname);
						SendClientMessageToAll(COLOR_NICERED, string);
						SendClientMessage(playerid, COLOR_YELLOW2, "Immigration Department: Your name is not acceptable.");
						SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Your name must be in the format Firstname_Lastname.");
						format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat Has Kicked %s for Invalid Name",d,m,y,h,mi,s,plname);
						KickLog(string);
						return 1;
					}
				}
			 	if(IsPlayerNPC(playerid))
			  	{
			   		SpawnPlayer(playerid);
			     	return 1;
			   	}
Reply
#9

somebody helping??i got host ...and im paying host alot so i dont want people to be waiting..
Reply
#10

please help meeeee!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)