[POMOC] Prikazivanje pravila, samo 1 na 1 ip adresu

Započeo reddion, Maj 12, 2012, 00:19:40 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Znaci imam ovaj dio koda
Citatpublic 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 (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
   {
      ClearChatbox(playerid, 10);
      format(string, sizeof(string), "Welcome to Raven's Roleplay, running Raven's Roleplay %s STABLE", Version);
      SendClientMessage(playerid, COLOR_YELLOW, string);
      SendClientMessage(playerid, COLOR_YELLOW2, " ");
      new message[] = "\t\t\t\t\t\t Raven's Roleplay Terms and Conditions \n\n\n\n\n\n 1- This server contains adult content. You agree that you have the legal age in your country to be exposed to such material\n\n 2- This server does not allows Hacks, you agree that you are not going to use any third party program in order to get any advantage.";
      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- By reading this you also agree that you will obey administrators ALWAYS, unless it breaks any term (1) (2) (3) (5). \n\n 5- This server obeys the Terms and Conditions made by the SA:MP Team at www.sa-mp.com/service_agreement \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,"Raven's Roleplay Terms and Conditions",string,"Agree","Refuse");
      SetPlayerCameraPos(playerid, 1890.1014,-1194.7969,25.8091);
      SetPlayerCameraLookAt(playerid, 1933.4393,-1196.2479,18.8163);
      //PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
      PlayerInfo[playerid][pModel] = Peds[classid][0];
      SetPlayerTeamFromClass(playerid,classid);
   }
   else
   {
      SpawnPlayer(playerid);
   }
   return false;
}

Ali ta pravila se pokazuju svaki put kad se ja konektujem sa iste IP adrese,sada me interesuje sta trebam dodati ako uopste moze, da se pokazuje samo 1 na 1 ip adresu, znaci konektujem se sad, prikaze mi se i opet kada se konektujem da se ne prikazuje vise na mojoj ip adresi..

Prikazivanje pravila,to je tvoj problem,a ne čitanje pravila je takoÄ'er tvoj problem.

Pročitaj ih !