їCargar un mapa en OnPlayerRequestClass?
#1

Alguien me dice como hacer que un mapa se carge mientras selecciono a mi jugador en

OnPlayerRequestClass

Gracias.
Reply
#2

exactamente igual a cuando se crea en OnGameModeInit o OnFilterScriptInit, solo que OnPlayerRequesClass es otro callback o evento diferente. pero para que queres que se cargue justo ahi?
Reply
#3

Quiero que se vea un mapa que hize para mi spawn pero no se ve me ayudan?
Reply
#4

crealo con CreateObject en OnGameModeInit. no hace falta que lo crees en un callback especifico para que se vea. de hecho va en OnGameModeInit generalmente o en OnFlilterScriptInit en su defecto.
Reply
#5

nadie me dice como sigo sin poder D:
Reply
#6

Quote:
Originally Posted by FlowMen
nadie me dice como sigo sin poder D:
Utiliza un Xtreamer. Te recomiendo el MidoXtream.
Reply
#7

Quote:
Originally Posted by FlowMen
nadie me dice como sigo sin poder D:
pawn Код:
public OnGameModeInit()
  CreateObject(...);//los ... son los parametros que tenes que completar coordenadas y rotacion del objeto.
  return 1;
}
Nota: Los objetos podes crearlos con el MTA editor.
Reply
#8

PORFAVOR! eso no es lo que pasa es que cuando escojo mi personaje no me carga el mapa USO XSTREAMER Y NO ES ESO lo que quiero es que mi mapa se vea en el class selection xD!
Reply
#9

donde cargas el mapa?
(en q callback)
Reply
#10

Yo tengo la solucion:

pawn Код:
//tienes que poner estas variables en donde van todas las variables
//skin choose island
new bool: SkinChooseIslandObjectsShown[MAX_PLAYERS];
new SpawnIslandObject1;
new SpawnIslandObject2;
new SpawnIslandObject3;
new SpawnIslandObject4;
new SpawnIslandObject5;
new SpawnIslandObject6;
new SpawnIslandObject7;
new SpawnIslandObject8;
new SpawnIslandObject9;
new SpawnIslandObject10;
new SpawnIslandObject11;
new SpawnIslandObject12;
new SpawnIslandObject13;
new SpawnIslandObject14;
new SpawnIslandObject15;
new SpawnIslandObject16;
new SpawnIslandObject17;
new SpawnIslandObject18;
new SpawnIslandObject19;
new SpawnIslandObject20;
new SpawnIslandObject21;
new SpawnIslandObject22;
new SpawnIslandObject23;
new SpawnIslandObject24;
new SpawnIslandObject25;
new SpawnIslandObject26;
new SpawnIslandObject27;
new SpawnIslandObject28;
new SpawnIslandObject29;
new SpawnIslandObject30;
new SpawnIslandObject31;
new SpawnIslandObject32;
new SpawnIslandObject33;
new SpawnIslandObject34;
new SpawnIslandObject35;
new SpawnIslandObject36;
//cada variable es un objeto si pones 100 objetos son 100 variables (new)

public OnPlayerRequestClass(playerid, classid)
{
if(SkinChooseIslandObjectsShown[playerid] == false)
    {
    SkinChooseIslandObjectsShown[playerid] = true;
      SpawnIslandObject1 = CreatePlayerObject(playerid, 898, 3932.645020, -1095.518799, -4.546414, 329.9197, 93.6786, 120.3212);
        SpawnIslandObject2 = CreatePlayerObject(playerid, 18340, 3920.361816, -1084.253662, 49.761078, 0.0000, 0.0000, 0.0000);
        SpawnIslandObject3 = CreatePlayerObject(playerid, 619, 3905.655762, -1029.703735, 8.862635, 0.0000, 0.0000, 49.8473);
        SpawnIslandObject4 = CreatePlayerObject(playerid, 621, 3968.395508, -1049.294434, 8.024704, 14.6104, 343.6707, 0.0000);
        SpawnIslandObject5 = CreatePlayerObject(playerid, 623, 3894.461182, -1075.970459, 11.654289, 0.0000, 0.0000, 326.4820);
        SpawnIslandObject6 = CreatePlayerObject(playerid, 619, 3898.211426, -1051.448853, 9.554228, 0.0000, 0.0000, 119.4617);
        SpawnIslandObject7 = CreatePlayerObject(playerid, 619, 3917.147217, -1006.179199, 8.302782, 0.0000, 0.0000, 104.8513);
        SpawnIslandObject8 = CreatePlayerObject(playerid, 619, 3963.251221, -1043.517090, 7.108164, 0.0000, 0.0000, 323.9037);
        SpawnIslandObject9 = CreatePlayerObject(playerid, 621, 3971.131104, -1067.059204, 8.574343, 10.3132, 348.8273, 356.5623);
        SpawnIslandObject10 = CreatePlayerObject(playerid, 621, 3909.550293, -1016.259155, 8.425720, 14.6104, 10.3132, 313.5904);
        SpawnIslandObject11 = CreatePlayerObject(playerid, 619, 3935.947266, -993.894287, 3.131102, 0.0000, 19.7670, 10.3132);
        SpawnIslandObject12 = CreatePlayerObject(playerid, 623, 3944.891602, -1022.871216, 0.288973, 0.0000, 0.0000, 326.4820);
        SpawnIslandObject13 = CreatePlayerObject(playerid, 16133, 3884.537354, -1039.285522, 19.302271, 10.3132, 340.2330, 150.4015);
        SpawnIslandObject14 = CreatePlayerObject(playerid, 16133, 3916.850342, -987.972778, 10.578606, 10.3132, 340.2330, 98.8353);
        SpawnIslandObject15 = CreatePlayerObject(playerid, 16133, 3988.867188, -1064.423096, 12.378860, 355.7028, 355.7028, 347.1085);
        SpawnIslandObject16 = CreatePlayerObject(playerid, 16133, 3985.739746, -1019.214600, 9.379145, 356.5623, 350.5462, 340.2330);
        SpawnIslandObject17 = CreatePlayerObject(playerid, 6230, 3941.477295, -1008.290527, -7.787828, 0.0000, 0.0000, 353.1245);
        SpawnIslandObject18 = CreatePlayerObject(playerid, 11495, 3952.709961, -953.437744, 5.393352, 6.8755, 0.0000, 0.0000);
        SpawnIslandObject19 = CreatePlayerObject(playerid, 647, 3948.795654, -993.862671, 4.965949, 0.0000, 0.0000, 0.0000);
        SpawnIslandObject20 = CreatePlayerObject(playerid, 647, 3947.602051, -979.635559, 5.998153, 0.0000, 0.0000, 0.0000);
        SpawnIslandObject21 = CreatePlayerObject(playerid, 647, 3964.480469, -975.510559, 7.691695, 0.0000, 0.0000, 0.0000);
        SpawnIslandObject22 = CreatePlayerObject(playerid, 647, 3966.208740, -986.594971, 7.181026, 0.0000, 0.0000, 0.0000);
        SpawnIslandObject23 = CreatePlayerObject(playerid, 647, 3969.218506, -1036.770264, 10.744990, 0.0000, 0.0000, 0.0000);
        SpawnIslandObject24 = CreatePlayerObject(playerid, 647, 3898.012939, -1058.910645, 13.254264, 0.0000, 0.0000, 0.0000);
        SpawnIslandObject25 = CreatePlayerObject(playerid, 647, 3917.973877, -1014.377014, 8.132461, 0.0000, 0.0000, 0.0000);
        SpawnIslandObject26 = CreatePlayerObject(playerid, 647, 3900.250000, -1039.894775, 12.266856, 0.0000, 0.0000, 0.0000);
        SpawnIslandObject27 = CreatePlayerObject(playerid, 647, 3971.664063, -1050.290894, 11.993178, 0.0000, 0.0000, 0.0000);
        SpawnIslandObject28 = CreatePlayerObject(playerid, 647, 3910.293945, -1008.784363, 11.523055, 0.0000, 0.0000, 0.0000);
        SpawnIslandObject29 = CreatePlayerObject(playerid, 621, 3941.803955, -975.435364, 3.726109, 14.6104, 0.8594, 25.7831);
        SpawnIslandObject30 = CreatePlayerObject(playerid, 621, 3966.490479, -977.003479, 3.367840, 14.6104, 12.0321, 0.0000);
        SpawnIslandObject31 = CreatePlayerObject(playerid, 1655, 3909.240967, -1043.196167, 6.256646, 2.5783, 30.0803, 349.6868);
        SpawnIslandObject32 = CreatePlayerObject(playerid, 2931, 3932.270752, -1035.791382, 0.229957, 0.0000, 0.0000, 282.6507);
        SpawnIslandObject33 = CreatePlayerObject(playerid, 13604, 3941.704834, -1016.693237, 3.157049, 0.0000, 0.0000, 354.8434);
        SpawnIslandObject34 = CreatePlayerObject(playerid, 13638, 3963.822021, -1054.860352, 9.098953, 0.8594, 337.6546, 0.0000);
        SpawnIslandObject35 = CreatePlayerObject(playerid, 13641, 3958.970459, -994.797852, 4.787591, 3.4377, 359.1406, 27.5020);
        SpawnIslandObject36 = CreatePlayerObject(playerid, 13647, 3912.631104, -1006.394836, 9.066553, 0.8594, 12.8916, 24.9237);
    }
  return 1;
}
//borra cada objeto y cambialo por el objeto de tu gusto

public OnPlayerSpawn(playerid)
{
if(SkinChooseIslandObjectsShown[playerid] == true)
    {
        DestroyPlayerObject(playerid, SpawnIslandObject1);
        DestroyPlayerObject(playerid, SpawnIslandObject2);
        DestroyPlayerObject(playerid, SpawnIslandObject3);
        DestroyPlayerObject(playerid, SpawnIslandObject4);
        DestroyPlayerObject(playerid, SpawnIslandObject5);
        DestroyPlayerObject(playerid, SpawnIslandObject6);
        DestroyPlayerObject(playerid, SpawnIslandObject7);
        DestroyPlayerObject(playerid, SpawnIslandObject8);
        DestroyPlayerObject(playerid, SpawnIslandObject9);
        DestroyPlayerObject(playerid, SpawnIslandObject10);
        DestroyPlayerObject(playerid, SpawnIslandObject11);
        DestroyPlayerObject(playerid, SpawnIslandObject12);
        DestroyPlayerObject(playerid, SpawnIslandObject13);
        DestroyPlayerObject(playerid, SpawnIslandObject14);
        DestroyPlayerObject(playerid, SpawnIslandObject15);
        DestroyPlayerObject(playerid, SpawnIslandObject16);
        DestroyPlayerObject(playerid, SpawnIslandObject17);
        DestroyPlayerObject(playerid, SpawnIslandObject18);
        DestroyPlayerObject(playerid, SpawnIslandObject19);
        DestroyPlayerObject(playerid, SpawnIslandObject20);
        DestroyPlayerObject(playerid, SpawnIslandObject21);
        DestroyPlayerObject(playerid, SpawnIslandObject22);
        DestroyPlayerObject(playerid, SpawnIslandObject23);
        DestroyPlayerObject(playerid, SpawnIslandObject24);
        DestroyPlayerObject(playerid, SpawnIslandObject25);
        DestroyPlayerObject(playerid, SpawnIslandObject26);
        DestroyPlayerObject(playerid, SpawnIslandObject27);
        DestroyPlayerObject(playerid, SpawnIslandObject28);
        DestroyPlayerObject(playerid, SpawnIslandObject29);
        DestroyPlayerObject(playerid, SpawnIslandObject30);
        DestroyPlayerObject(playerid, SpawnIslandObject31);
        DestroyPlayerObject(playerid, SpawnIslandObject32);
        DestroyPlayerObject(playerid, SpawnIslandObject33);
        DestroyPlayerObject(playerid, SpawnIslandObject34);
        DestroyPlayerObject(playerid, SpawnIslandObject35);
        DestroyPlayerObject(playerid, SpawnIslandObject36);

        SkinChooseIslandObjectsShown[playerid] = false;
    }
return 1;
}
PD: no te aseguro nada, lo copie y pegue del stunt universe xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)