(NeedHelp)Kako iskljuciti odabiir skina prije logina!!!

Započeo MD Alex, Novembar 28, 2009, 20:16:29 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

MD Alex

PoZzZz zanima me dali neko zna kako iskljuciti npr...Kad tek udjete u spam prije nego ste unjeli lozinku dodju vam skinovi pa me zanima kako iskljucti to da nebudu nego da bude to za odabrati skin kad ionako nicemu nesluzi!!!



Hvala LP Alex

Prvo nadjes u pawno public OnPlayerRequestClass(playerid, classid)

i pod tim obrises ovo:
        if (classid == 1)
{
format(string, sizeof(string), "~y~> ~p~Police Chief ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 2)
{
format(string, sizeof(string), "~y~> ~p~FBI/ATF Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 3)
{
format(string, sizeof(string), "~y~> ~p~National Guard General ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 4)
{
format(string, sizeof(string), "~y~> ~p~Fire/Ambulance Chief ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 5)
{
format(string, sizeof(string), "~y~> ~p~Espana Drogas Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 6)
{
format(string, sizeof(string), "~y~> ~p~Luciano Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 7)
{
format(string, sizeof(string), "~y~> ~p~Mayor ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 8)
{
format(string, sizeof(string), "~y~> ~p~Hitman Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 9)
{
format(string, sizeof(string), "~y~> ~p~News Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 10)
{
format(string, sizeof(string), "~y~> ~p~Taxi Cab Company Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 11)
{
format(string, sizeof(string), "~y~> ~p~License Faction Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 14)
{
format(string, sizeof(string), "~y~> ~p~Nortenos Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 15)
{
format(string, sizeof(string), "~y~> ~p~Grove Street Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 16)
{
format(string, sizeof(string), "~y~> ~p~Jefferson Saints Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else
{
format(string, sizeof(string), "~y~> ~g~Civilian ~y~<");
GameTextForPlayer(playerid,string,3500,6);
}
SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
return 1;
Aequam memento rebus in arduis servare mentem.

MD Alex

AmA nije mi ovo pomoglo za ono sta trebam zna neko kako da makenam LOGIN I REGISTER SYSTEM JA SAM POKUSO MAKNUTI ONO DI JE cmd /login,/register
Citat//-------------------------------[Login]--------------------------------------------------------------------------
   if (strcmp(cmd, "/login", true) ==0 )
   {
       if(IsPlayerConnected(playerid))
       {
           new tmppass[64];
         if(gPlayerLogged[playerid] == 1)
         {
            SendClientMessage(playerid, COLOR_WHITE, "SERVER: Vec ste prijavljeni (logirani).");
            return 1;
         }
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD1, "KORISTI: /login [lozinka]");
            return 1;
         }
         strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
         Encrypt(tmppass);
         OnPlayerLogin(playerid,tmppass);
      }
      return 1;
   }
   if (strcmp(cmd, "/register", true) ==0 )
   {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 1)
         {
            SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: Vec ste prijavljeni (logirani).");
            return 1;
         }
         GetPlayerName(playerid, sendername, sizeof(sendername));
         format(string, sizeof(string), "%s.ini", sendername);
         new File: hFile = fopen(string, io_read);
         if (hFile)
         {
            SendClientMessage(playerid, COLOR_YELLOW, "To ime vec postoji, molimo odaberite drugo.");
            fclose(hFile);
            return 1;
         }
           new tmppass[64];
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD1, "KORISTI: /register [lozinka]");
            return 1;
         }
         strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
         Encrypt(tmppass);
         OnPlayerRegister(playerid,tmppass);
      }
      return 1;
   }

Ali nije mi uspjelo on i dalje pokazuje da se logiram ali nece se logirati jer nema komande pa sad me zanima ako da dsabliram to da NEma logina!!!
Hvala i LP...

public OnPlayerRequestClass(playerid, classid)

pod tim obrises ono za login i to...
Aequam memento rebus in arduis servare mentem.