[ HELP ] Can't Load Maps / Gates / Parkour etc
#3

Here it is
pawn Код:
stock LoadGates()
{
  for(new iD=0;iD<MAX_GATES;iD++)
  {
    if(fexist(GatePath(iD)))
    {
        INI_ParseFile(GatePath(iD), "LoadGate_gatedata", .bExtra = true, .extra = iD);
        GateInfo[iD][ObjectID] = CreateDynamicObject(GateInfo[iD][gModel],GateInfo[iD][gPos][0],GateInfo[iD][gPos][1],GateInfo[iD][gPos][2],GateInfo[iD][gPos][3],GateInfo[iD][gPos][4],GateInfo[iD][gPos][5]);
        GateInfo[iD][gKeypad1] = CreateDynamicObject(19273,GateInfo[iD][k1][0],GateInfo[iD][k1][1],GateInfo[iD][k1][2],0,0,GateInfo[iD][k1][3]);
        GateInfo[iD][gKeypad2] = CreateDynamicObject(19273,GateInfo[iD][k2][0],GateInfo[iD][k2][1],GateInfo[iD][k2][2],0,0,GateInfo[iD][k2][3]);

        GateInfo[iD][IsOpened]=0;
        if(GateInfo[iD][g_type] == 1) GateInfo[iD][g_range] = CreateDynamicSphere(GateInfo[iD][gPos][0],GateInfo[iD][gPos][1],GateInfo[iD][gPos][2], 5.00,0);

        if(GateInfo[iD][gModel] == 5837 || GateInfo[iD][gModel] == 18755)
        {
            GateInfo[iD][gKeypad3] = CreateDynamicObject(19273,GateInfo[iD][ok3][0],GateInfo[iD][ok3][1],GateInfo[iD][ok3][2],GateInfo[iD][ok3][3],GateInfo[iD][ok3][4],GateInfo[iD][ok3][5]);

        }
    }
    else
    {
          GateInfo[iD][ObjectID]=INVALID_OBJECT_ID;
          GateInfo[iD][gKeypad1]=INVALID_OBJECT_ID;
          GateInfo[iD][gKeypad2]=INVALID_OBJECT_ID;
          GateInfo[iD][gKeypad3]=INVALID_OBJECT_ID;
    }
  }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)